mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 09:53:33 +08:00
high_latency_stream: minor PR fix
This commit is contained in:
@@ -385,7 +385,7 @@ private:
|
||||
{
|
||||
vehicle_attitude_s attitude;
|
||||
|
||||
if (_attitude_sub.update(&attitude) && _attitude_sub.copy(&attitude)) {
|
||||
if (_attitude_sub.update(&attitude)) {
|
||||
|
||||
const matrix::Eulerf euler = matrix::Quatf(attitude.q);
|
||||
msg->heading = static_cast<uint8_t>(math::degrees(matrix::wrap_2pi(euler.psi())) * 0.5f);
|
||||
|
||||
Reference in New Issue
Block a user