UTC = GetGpsTime()

This function returns the time of the last GPS update as a Universal Time Code which is the same format as all the time functions in Basic (milliseconds since January 1, 1970). The minimum time between GPS updates is 250ms. So you will want to Wait at least 250ms between getting GPS values. Checking GPS values every second or half second should work fairly well.

So you can write:

GpsTime$ = FormatTime$(GetGpsTime(), "yyyy.MM.dd 'at' HH:mm:ss z")
Print GpsTime$

and get:

2011.07.29 at 17:43:00 CDT

This tells you how long it has been since the last GPS update.


Become a Patron