I bought this gps hat https://www.adafruit.com/product/2324 for my Pi 2 with the intention of making a tracking device.
The way it works is that every 1 minute, latitude and longi is sent to my database. My problem is, even when my device is stationary, I get coordinates that seem to say my device is moving. I figured I could use the speed parameter and not record while my speed is 0, but much to my surprise. Even when my device is not moving I still get varing speeds.
This is a look of my database.
Lat Long Speed
45.29274167 -61.24924167 0.68400000
45.29232833 -61.24946833 1.42300000
45.29239500 -61.24941000 0.65100000
45.29279833 -61.24976500 0.55600000
45.29226833 -61.24929667 31.36500000 (not a typo, an actually 31 was recorded.)
45.29248833 -61.24941000 1.25300000
45.29215000 -61.24931000 1.97700000
I will confess I have not yet attached the antenna (the pigtail wire was a male) but im not to convinced that will help much. Would appreciate it if I could get some insight as to this behavior probably is a issue with my script? I may be comparing apples with Oranges but the GPS on my phone even thou it's not DEAD accurate, it doesnt jump around so much.
I have added a condition to not take a recording if speed is less than 1 and distance from the last pin is less than 30 M, but that also...doesnt do much...as sometimees I get a point over 5om away.