|More nmea_info.py fun
||[Jun. 25th, 2006|11:28 pm]
nmea_info.pyHilary's been off in Japan for the last week, so I've had some time to play with |
First up, we have the shiny new track uploader, upload_track.py. This allows you to see the details of the tracks you've collected, and then send them off to a nearby computer over bluetooth (optionally as GPX, for all you OSM'ers). It doesn't upload straight to OSM, but I think if the API ever supports that, I might look into it (data costs over GPS might be a killer though).
Having got upload working, I then set to work on the direction-of stuff in nmea_info.py. When I'm in Dublin, I'm going to want to wander about mapping, but still find my way back to the hotel. So, I've made it so that you can add a waypoint of the current location by hitting '5' when on the direction-of screen. You can then use 1 and 3 to cycle between waypoints, and 8 to delete the current one.
Annoyingly, I hit a few series 60 python bugs, where arrays would get corrupted when shared between threads, causing python to just die. This did make the coding take quite a lot longer than it should've done, since I kept trying to find workarounds for the bugs. So, being able to enter arbitrary waypoints (including OS easting/northing points) will have to wait for another time.
Oh, and I also got nmea_info.py optionally logging the GSM+GPS locations to the stumblestore log file, for use with gsmloc.org. Just hit 5 on the main screen to toggle it, then use stumblestore to upload your captured positions.