Orolia2s / oscillatord

Daemon used to discipline the Atomic Reference Time Card from Orolia
GNU General Public License v2.0
21 stars 14 forks source link

sa53: adjust GNSS fix calculations #125

Closed vvfedorenko closed 8 months ago

vvfedorenko commented 8 months ago

To check the HOLDOVER duration we compare the timestamp of the last known GNSS fix and current time and use this comparison to adjust the state of the card and MAC. Unfortunately, the last known GNSS fix timestamp was stored as UTC time came from GNSS, but later compared to monotonic clock timestamp. This comparison is incorrect. Store monotonic clock timestamp every time we recieve good GNSS time and use it later in all comparisons.

leoleovich commented 8 months ago

The change is only affecting sa53. Is it working as expected for mro50?

leoleovich commented 8 months ago

cc @agagniere