mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
added timestamp for altitude message
This commit is contained in:
@@ -2602,6 +2602,8 @@ protected:
|
|||||||
if (updated) {
|
if (updated) {
|
||||||
mavlink_altitude_t msg;
|
mavlink_altitude_t msg;
|
||||||
|
|
||||||
|
msg.time_usec = hrt_absolute_time();
|
||||||
|
|
||||||
msg.altitude_monotonic = global_pos.pressure_alt;
|
msg.altitude_monotonic = global_pos.pressure_alt;
|
||||||
msg.altitude_amsl = global_pos.alt;
|
msg.altitude_amsl = global_pos.alt;
|
||||||
msg.altitude_local = -local_pos.z;
|
msg.altitude_local = -local_pos.z;
|
||||||
|
|||||||
Reference in New Issue
Block a user