?

Log in

No account? Create an account
More nmea_info.py fun - Nick [entries|archive|friends|userinfo]
Nick

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

More nmea_info.py fun [Jun. 25th, 2006|11:28 pm]
Nick
Hilary's been off in Japan for the last week, so I've had some time to play with nmea_info.py

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.
linkReply

Comments:
From: (Anonymous)
2006-06-26 06:32 pm (UTC)

If you find bugs, please file them in the bug tracker...

If you find a bug in PyS60, please file it in the SourceForge bug tracker:

http://sourceforge.net/tracker/?atid=790646&group_id=154155&func=browse

We'll get to them eventually.

I don't recall any bug related to arrays being corrupted in cross-thread use. If this is the case, then that's a real new bug.

- Jukka Laurila
(Reply) (Thread)
From: gagravarr
2006-06-26 08:32 pm (UTC)

Re: If you find bugs, please file them in the bug tracker...

OK, but added. I've only seen it in this fairly complex bit of code, so I don't know how easy you'll find it to debug!
(Reply) (Parent) (Thread)