added timestamp for altitude message

This commit is contained in:
Andreas Antener 2015-11-23 21:19:24 +01:00
parent c706c30e83
commit 2ceaab138f

View File

@ -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;