geeksville / Gaggle

An Android application for glider pilots
http://groups.google.com/group/gaggle-users/
33 stars 16 forks source link

Allow use to specify altitude adjustment for geoid height diff #87

Closed chanoch closed 11 years ago

chanoch commented 12 years ago

For devices without a barometer, altitude is calculated using GPS. GPS uses mean sea height (a uniform ellipse) to define altitude but the actual height of the sea level varies across the globe. This is a manual workaround for making the adjustment.

The code includes a GaggleConfig class which can be used to disable use of a barometer on devices that have them in order to test the fix without the barometer overwriting the GPS provided altitude.

I could add the disabling of the Barometer as a user preference if anyone wants it (battery conservation?)

dkm commented 11 years ago

Hey Chanoch, what's the status of this ? Is it working ? Still some work to do before merging it ?

dkm commented 11 years ago

Ok, I've had a look: we should really embed correction data and get altitude offset by default. I could not find any existing android code for that, which is a bit surprising, I'll try to search more deeply :)

dkm commented 11 years ago

Fixed in gaggle beta. Using nmea and/or egm84 data