I have the Ultimate GPS board successfully running on a Teensy3.6 using the tinyGPS (and tinyGPSPlus) library. I'd like to be able to read and parse the lat/long/alt when the PPS signal occurs. Is there a way to do this? The tinyGPS example sketches seem to be polling the chip nearly continuously with this block of code:
start = millis();
do
{
while (ss.available())
gps.encode(ss.read());
} while (millis()-start<1000);
I'd like the PPS to tell me when the start of a new GPS second is, then I'll read the GPS chip to get lat/long/alt, then I can go off and do other things (like use a Kalman to integrate accel measurements) until the next PPS signal.
Any suggestions or thoughts? Thanks!
start = millis();
do
{
while (ss.available())
gps.encode(ss.read());
} while (millis()-start<1000);
I'd like the PPS to tell me when the start of a new GPS second is, then I'll read the GPS chip to get lat/long/alt, then I can go off and do other things (like use a Kalman to integrate accel measurements) until the next PPS signal.
Any suggestions or thoughts? Thanks!