Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timestamps from PPS sources are rounded to the nearest pulse, i.e. for correct synchronization the offset between the source timestamp and external PPS event timestamp needs to be between -0.5 and +0.5 seconds. For the pulse edge rejection to work correctly it needs to be even smaller, between -pulsewidth/2 and +pulsewidth/2. With the NMEA PPS source the offset is the delay in the reception of the RMC message. This message is not expected to come exactly on time with the corresponding pulse. A positive delay is expected, typically at least few tens of milliseconds, but some receivers have delays longer than 0.5 seconds. Add NMEA-specific rounding of the offset to not expect negative delays and allow positive delays of up to 1 second, or whole pulsewidth if the edge rejection is enabled. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
- Loading branch information