UAVCAN: preserve original UAVCAN message timestamps

This commit is contained in:
Holger Steinhaus
2014-11-18 14:58:04 +01:00
parent e026324784
commit 2ce2d26d52
4 changed files with 3 additions and 10 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ void UavcanGnssBridge::gnss_fix_sub_cb(const uavcan::ReceivedDataStructure<uavca
auto report = ::vehicle_gps_position_s();
report.timestamp_position = hrt_absolute_time();
report.timestamp_position = msg.getMonotonicTimestamp().toUSec();
report.lat = msg.latitude_deg_1e8 / 10;
report.lon = msg.longitude_deg_1e8 / 10;
report.alt = msg.height_msl_mm;