Random Projects and Comments

Home 2011 February

GPX Library Bug

Drive-022711
Ran into a bug in my GPX Library that produced some interesting results. The problem manifested itself as what initially looked like half my data from a test drive being currupted, I initially was thinking it was a memory problem, or data being currupted in the I2C transfer. After looking at the tracks for a while trying to figure out how they got currupted I noticed that the point where the data went from clean to corrupt appeared to be level. When I focused in on these points they were in fact exactly at 43deg latitude. I then noticed a small piece of what looked to be clean data a bit north of the 43deg point. Uppon inspection clean data was at 43.10000 deg latitude. It didn’t take long to realise that I had not padded the fraction part, so 43.00001 was going into the file as 43.1
Drive-022711-fix
I went back to the source file and quickly fixed them with ‘sed’ and the result is a much cleaner track.
Drive-022711-2
And when over layered with OSM (http://www.openstreetmap.org/) data the track appears to be very accurate!

 

GPS Logger Hardware v3.1

DSCN0811
Bit of a delay moving on this project, mainly because an error in the board I was building to mount the SUP500f GPS to had an error which fried it. Since sparkfun stopped selling SUP500f I had to find another GPS module. I ended up not going with the recommended replacement mainly due to the odd SMT connector in the middle of the device, I have no reason to this but it just felt like that would not work very well. (more…)

 
credit
© Ryan M Sutton, 2015