Closed chanoch closed 11 years ago
Hey Chanoch, what's the status of this ? Is it working ? Still some work to do before merging it ?
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 :)
Fixed in gaggle beta. Using nmea and/or egm84 data
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?)