|
From: | Sanjeev Gupta |
Subject: | Re: [gpsd-dev] GPSD's assumptions about time |
Date: | Wed, 27 Nov 2013 02:55:28 +0800 |
So far two ideas have come to me from this discussion, both of which I
think are worth implementing.
1. Compile the GPS week of the build into the build
The obvious place tp put this is in timebase.h. Not too expensive;
will typically cause extra work once per seven days. The benefit is that
we can compare received week to the compiled-in week and if the latter
is less know that a rollover has occurred.
2. Track gpsd's confidence in the GPS time it's seeing.
This would increase when we see a leap-second offset or get GPZDA from
the device, decrease when we detect a rollover. Some devices that are
known to deliver high-quality time (notably u-blox GPSes) would peg the
confidence measure at a high level.
We'd use the confidence level to
control (a) whether gpsd ships to NTP, and (b) how it sets time
uncertainty in output JSON.
[Prev in Thread] | Current Thread | [Next in Thread] |