mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
added timestamp for altitude message
This commit is contained in:
parent
c706c30e83
commit
2ceaab138f
@ -2602,6 +2602,8 @@ protected:
|
||||
if (updated) {
|
||||
mavlink_altitude_t msg;
|
||||
|
||||
msg.time_usec = hrt_absolute_time();
|
||||
|
||||
msg.altitude_monotonic = global_pos.pressure_alt;
|
||||
msg.altitude_amsl = global_pos.alt;
|
||||
msg.altitude_local = -local_pos.z;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user