Skip to content

Commit

Permalink
returned back the timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Loginov committed Nov 27, 2024
1 parent 87d267a commit 34e37f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34e37f4

Please sign in to comment.