mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 10:53:34 +08:00
renaming of gps time to UTC time
This commit is contained in:
@@ -759,8 +759,8 @@ UBX::payload_rx_done(void)
|
||||
warn("failed setting clock");
|
||||
}
|
||||
|
||||
_gps_position->time_gps_usec = static_cast<uint64_t>(epoch) * 1000000ULL;
|
||||
_gps_position->time_gps_usec += _buf.payload_rx_nav_timeutc.nano / 1000;
|
||||
_gps_position->time_utc_usec = static_cast<uint64_t>(epoch) * 1000000ULL;
|
||||
_gps_position->time_utc_usec += _buf.payload_rx_nav_timeutc.nano / 1000;
|
||||
}
|
||||
|
||||
_gps_position->timestamp_time = hrt_absolute_time();
|
||||
@@ -831,8 +831,8 @@ UBX::payload_rx_done(void)
|
||||
warn("failed setting clock");
|
||||
}
|
||||
|
||||
_gps_position->time_gps_usec = static_cast<uint64_t>(epoch) * 1000000ULL;
|
||||
_gps_position->time_gps_usec += _buf.payload_rx_nav_timeutc.nano / 1000;
|
||||
_gps_position->time_utc_usec = static_cast<uint64_t>(epoch) * 1000000ULL;
|
||||
_gps_position->time_utc_usec += _buf.payload_rx_nav_timeutc.nano / 1000;
|
||||
}
|
||||
|
||||
_gps_position->timestamp_time = hrt_absolute_time();
|
||||
|
||||
Reference in New Issue
Block a user