mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-03-28 01:51:14 +08:00
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 captured
2 lines
155 B
Plaintext
2 lines
155 B
Plaintext
uint64 timestamp # time since system start (microseconds) at PPS capture event
|
|
uint64 rtc_timestamp # Corrected GPS UTC timestamp at PPS capture event |