mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-19 10:57:46 +08:00
added timestamp for altitude message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user