Skip to content

Commit

Permalink
mavlink_messages: send TAS instead of IAS
Browse files Browse the repository at this point in the history
Send true_airspeed_m_s instead of indicated_airspeed_m_s for HUD on groundstation.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
  • Loading branch information
sfuhrer committed May 7, 2020
1 parent 297e4dd commit 71c4c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/mavlink/mavlink_messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ class MavlinkStreamVFRHUD : public MavlinkStream
_airspeed_validated_sub.copy(&airspeed_validated);

mavlink_vfr_hud_t msg{};
msg.airspeed = airspeed_validated.indicated_airspeed_m_s;
msg.airspeed = airspeed_validated.true_airspeed_m_s;
msg.groundspeed = sqrtf(lpos.vx * lpos.vx + lpos.vy * lpos.vy);
msg.heading = math::degrees(wrap_2pi(lpos.yaw));

Expand Down

0 comments on commit 71c4c5a

Please sign in to comment.