SlashDevin / NeoGPS

NMEA and ublox GPS parser for Arduino, configurable to use as few as 10 bytes of RAM
GNU General Public License v3.0
702 stars 195 forks source link

NeoGPS::time_t issue #147

Open tvanderweide opened 3 years ago

tvanderweide commented 3 years ago

I'm trying to use the time_t struct to hold a dateTime from a fix and print this at a later point in the code. It's working fine except there's no dateTime_cs field in time_t and I had to do a little work around. Could this be added or am I missing an easy way to access the sub-second GPS accuracy?

R1DEN commented 3 years ago

I'm trying to use the time_t struct to hold a dateTime from a fix and print this at a later point in the code. It's working fine except there's no dateTime_cs field in time_t and I had to do a little work around. Could this be added or am I missing an easy way to access the sub-second GPS accuracy?

@tvanderweide AFAIK it is only available after the module receives the GPS "master frame" which is only "sent" once every 12.5 minutes. It sets the "leap second" property and that enables it to be accurate. I also tried to find a workaround on how to set it in a force way (my device has internet connection and can get the leap seond data from there)