Skip to content

Instantly share code, notes, and snippets.

@inmcm
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inmcm/bf22a292a7609314937f to your computer and use it in GitHub Desktop.
Save inmcm/bf22a292a7609314937f to your computer and use it in GitHub Desktop.
#Get parse time in microseconds on pyboard
#Get parse time in microseconds on pyboard
from micropyGPS import MicropyGPS
sentence1 = '$GPRMC,181714.898,A,3748.8617,N,08338.9530,W,000.0,237.0,240911,,,A*79'
sentence2 = '$GPGGA,181715.898,3748.8604,N,08338.9539,W,1,09,0.9,371.4,M,-32.5,M,,0000*60'
sentence3 = '$GPGSA,A,3,07,11,28,24,26,08,04,17,20,,,,1.7,0.9,1.4*3F'
sentence4 = '$GPGSV,3,1,12,28,76,017,38,17,56,282,38,01,46,055,40,08,38,183,47*75'
my_gps = MicropyGPS()
start = 0
stop = 0
for x in sentence1:
start = pyb.micros()
my_gps.update(x)
stop = pyb.micros()
print(x,stop - start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment