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:
Beat Küng
2016-06-24 00:22:01 +02:00
committed by Lorenz Meier
parent e2a7145379
commit f8e9a19889
5 changed files with 5 additions and 6 deletions
@@ -339,7 +339,7 @@ GPSSIM::task_main()
//Make sure to clear any stale data in case driver is reset
memset(&_report_gps_pos, 0, sizeof(_report_gps_pos));
_report_gps_pos.timestamp = hrt_absolute_time();
_report_gps_pos.timestamp_time = hrt_absolute_time();
_report_gps_pos.timestamp_time_relative = 0;
if (!(m_pub_blocked)) {
if (_report_gps_pos_pub != nullptr) {