From 34e37f43c8823066aa7891375089b2cbbd680f9a Mon Sep 17 00:00:00 2001 From: Ilia-Loginov Date: Wed, 27 Nov 2024 12:57:36 +0400 Subject: [PATCH] returned back the timestamp --- src/modules/mavlink/mavlink_receiver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 109f1f70cd5e..d379485810e1 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -2349,6 +2349,7 @@ MavlinkReceiver::handle_message_hil_gps(mavlink_message_t *msg) // Publish GPS groundtruth vehicle_global_position_s hil_global_position_groundtruth{}; hil_global_position_groundtruth.timestamp_sample = hrt_absolute_time(); + hil_global_position_groundtruth.timestamp = hrt_absolute_time(); hil_global_position_groundtruth.lat = hil_gps.lat / 1e7; hil_global_position_groundtruth.lon = hil_gps.lon / 1e7; hil_global_position_groundtruth.alt = hil_gps.alt / 1e3f;