Tagged: GPS GPX Track Waypoint
- August 18, 2020 at 8:45 am #16062
I have a Raspberry Pi and a USB GPS module using the command cgps -s and or gpsmon in Terminal I can see GPS data being streamed, I am getting 8 satellites most the time, there are plenty of tutorials getting me this far but I would like to record tracks and create waypoints.
What script can I use to record a GPS track and save the file to disk
What script can I run to record a GPS waypoint and save to disk
Thanks in advance.August 18, 2020 at 8:58 am #16063
I found this https://ozzmaker.com/how-to-save-gps-data-to-a-file-using-python/ copied and pasted into Thonny and ran Thonny returned the following error
Python 3.7.3 (/usr/bin/python3)
>>> %Run gpsfile.py
Traceback (most recent call last):
File “/home/pi/Desktop/Test_Code/gpsfile.py”, line 10
print ‘GPStime utc\t\t\tlatitude\tlongitude\tspeed\tsats in view’ # ‘\t’ = TAB to try and output the data in columns.
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(‘GPStime utc\t\t\tlatitude\tlongitude\tspeed\tsats in view’ # ‘\t’ = TAB to try and output the data in columns.)?
Being new to all of this I do not understand the error.
ThanksAugust 25, 2020 at 12:54 pm #16157
Update I have https://ozzmaker.com/how-to-save-gps-data-to-a-file-using-python/ working I just needed to add ( ) around everything that calls to print
Now its working how can I add buttons to start stop recording Tracks and buttons to create Waypoints ?
Thanks in advance
- You must be logged in to reply to this topic.