Support PPS for accurate UTC timestamps
Major changes:
-
A PPS digital input can be used to "timestamp" the start of each UTC second. This timestamp can be used to calculate the current UTC microseconds or milliseconds from the current Arduino
micros()
. -
If the PPS digital input is not available, the character stream can be used to "guess" the interval start, within a few milliseconds. This is affected by the GPS device's computation time.
-
SyncTime.ino example shows how to run off the UTC millisecond clock instead of the Arduino
millis()
function.
Minor changes:
- The NMEA degrees/minutes format for lat/lon can now be printed by a DMS variable. A
fix.location
can be used to set the DMS values, and thenDMS.printDDDMMmmmm
will print those values to the selected output stream.