Recording Tracks Creating Waypoints?

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Recording Tracks Creating Waypoints?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16062
    West
    Participant

    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.

    #16063
    West
    Participant

    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.

    Thanks

    #16157
    West
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop...