Browse Source
The existing implementation has about 100ms difference to a reference clock. With the changes this error less than 25us. - Use sensor_gps messages with hrt timestamps as RTC reference and not the system realtime clock. The PPS interrupt can then be aligned with the GPS clock system. - Keep fallback based on system RTC when no PPS pulse was capturedmaster
6 changed files with 60 additions and 30 deletions
@ -1,3 +1,2 @@ |
|||||||
uint64 timestamp # time since system start (microseconds) |
uint64 timestamp # time since system start (microseconds) at PPS capture event |
||||||
uint64 rtc_timestamp # captured time in microseconds from real-time clock at PPS event |
uint64 rtc_timestamp # Corrected GPS UTC timestamp at PPS capture event |
||||||
int32 rtc_drift_time # time drift between RTC and PPS event in microseconds |
|
Loading…
Reference in new issue