mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 06:13:35 +08:00
gps_position: convert uint64 timestamp_time -> int32 timestamp_time_relative
We need to make this timestamp relative to the main timestamp. Necessary for replay, and saves some space.
This commit is contained in:
@@ -1781,7 +1781,7 @@ MavlinkReceiver::handle_message_hil_gps(mavlink_message_t *msg)
|
||||
struct vehicle_gps_position_s hil_gps;
|
||||
memset(&hil_gps, 0, sizeof(hil_gps));
|
||||
|
||||
hil_gps.timestamp_time = timestamp;
|
||||
hil_gps.timestamp_time_relative = 0;
|
||||
hil_gps.time_utc_usec = gps.time_usec;
|
||||
|
||||
hil_gps.timestamp = timestamp;
|
||||
|
||||
Reference in New Issue
Block a user