Question

Hi i have one small problem.

I wrote an app in which i log lat,long and alt from gps. Long and lat is quite ok but altitude is at the start more than 60m above correct one ( correct is ~275 but shows ~345). During first 1-2 minutes of logging altitude is constantly getting lower and lower till it shows correct one ( 345-> 344 -> ....-> 275->275 and so on).

Can anyone explain it to me why altitude is getting better during the time and after some time it shows good altitude during rest of the walk/ride?

Was it helpful?

Solution

" it shows good altitude during rest of the walk/ride?"

I doubt that altitude is good on the rest of your ride.

altitude via GPS is known to be not very usefull. The error is about twice that of horicontal (lat,lon) error. Thats the reason why professional navigation devices additionally use a barometer sensor instead of GPS altitude alone.

The reason why it gets better, is that the averaging algorithm had more time to average the errors out. On my ios devcie and i my app, the altitude jumps so much that it shows some hundreds meters ascending / descending even when I am moving level at a lake.

But you always can check the value of vertical accuracy. Use the altitude only when it gets below 30m vert. accuracy.

OTHER TIPS

In order to get accurate coordinates, a GPS system should listen to at least 4 sattelites of the GPS constellation. Also, those sattelites broadcast messages that are 30 seconds long.

Since most users nowadays have some level of ADHD, a 30 seconds time to get the first fix (and a further 30 seconds more for every other fix after that) would make many project managers and device designers scream. They also want your cell phone to divine where you are even with only two or three sattelites in view - theoretically possible, but you get results with poor accuracy doing that. With three sattelites you can get an approximation, but with only two you're no better than if you were using a compass and an astrolabe.

So that's what happens: your device doesn't wait to get the whole message from the sattelites, and keeps approaching a more accurate result as more and more of the GPS message pours through. After a while, some time after the first few messages, it gets the correct fix and its stops trying to guess your coordinates.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top