Reply To: Writing Code to Record GPS data

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Writing Code to Record GPS data Reply To: Writing Code to Record GPS data

#15778
PeterP
Participant

your output looks good. I cant workout why you are not getting all the data in your file.

1Can you upload the first 100 lines of your file so I can have a look.

Can you move the print statement to be in the loop after it finds TPV… like below. When you run it, does it keep printing out the TPV data or does it only do it once and stop?

 while True:
report = gpsd.next() #
if report['class'] == 'TPV':
print report
lat = float(getattr(report,'lat',0.0))

Can you also show a few lines of the NMEA sentences when you run gpsmon -n

 

Peter --OzzMaker.com --

Blip, blop, bloop…