dl9rdz / rdzwx-go

Apache License 2.0
24 stars 3 forks source link

TTGO and app shows different altitudes for balloon in the same position #2

Closed eben80 closed 3 years ago

eben80 commented 3 years ago

Hi, I don't know if the altitudes are calculated differently, but I was consistently seeing different values for the altitude on the TTGO screen and the readout on the app.

dl9rdz commented 3 years ago

Yes this is intentional (suggestions on how to make this more explicit in the UI are welcome)

On the ESP32 its just the raw GPS ellipsoid height.

On the App its the true EGM96 geoid height (above see level), because that's what is expected for the prediction API and also what matches the height levels in the map...

eben80 commented 3 years ago

OK I understand so what is displayed on the app should coincide with whatever is shown as elevation for those 2d coordinates on maps. Does that mean that that data comes from the map and is not calculated in real-time from balloon GPS?

dl9rdz commented 3 years ago

The app contains the EGM96 database (see https://en.wikipedia.org/wiki/Earth_Gravitational_Model) that describes the difference between GPS height and Geoid height, so the data received from the radiosonde is adjusted by the offset obtained from the database (around 40m in Europe).

So if a radiosonde is lying on the ground, then yes, then the displayed height should match the height from the map (+/- accuracy of the radiosonde GPS).

eben80 commented 3 years ago

Thank you very much for that explanation. I don't have any suggestions for UI but I guess if it is just mentioned somewhere in the Wiki or app legend, it would be enough to inform users.

Edit: Just realized its already in the Wiki #facepalm