mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 04:43:34 +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:
@@ -752,10 +752,9 @@ GPS::task_main()
|
||||
* no valid position lock
|
||||
*/
|
||||
|
||||
_report_gps_pos.timestamp_time = hrt_absolute_time();
|
||||
|
||||
/* reset the timestamp for data, because we have no data yet */
|
||||
_report_gps_pos.timestamp = 0;
|
||||
_report_gps_pos.timestamp_time_relative = 0;
|
||||
|
||||
/* set a massive variance */
|
||||
_report_gps_pos.eph = 10000.0f;
|
||||
|
||||
Reference in New Issue
Block a user