mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Revert "Use global position altitude to report HUD altitude, for consistency."
This commit is contained in:
parent
ea269dbbbe
commit
7bde4fa634
@ -820,11 +820,7 @@ protected:
|
||||
msg.groundspeed = sqrtf(pos.vel_n * pos.vel_n + pos.vel_e * pos.vel_e);
|
||||
msg.heading = _wrap_2pi(att.yaw) * M_RAD_TO_DEG_F;
|
||||
msg.throttle = armed.armed ? act.control[3] * 100.0f : 0.0f;
|
||||
/*
|
||||
Do not use sensor_combined.baro_alt_meter here because
|
||||
it is mismatched with WSG84 AMSL used elsewhere for reporting altitude.
|
||||
*/
|
||||
msg.alt = pos.alt;
|
||||
msg.alt = sensor_combined.baro_alt_meter;
|
||||
msg.climb = -pos.vel_d;
|
||||
|
||||
_mavlink->send_message(MAVLINK_MSG_ID_VFR_HUD, &msg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user