EdgeTX / edgetx-sdcard

SD Card contents and images for EdgeTX
125 stars 41 forks source link

Issue with the GPS widget's altitude #134

Open DavBfr opened 8 months ago

DavBfr commented 8 months ago

The LUA API at https://luadoc.edgetx.org/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps states that the altitude is in 0.1m but this is not reflected in the TxGPStest LUA widget.

https://github.com/EdgeTX/edgetx-sdcard/blob/88e8369dc6c710aa82a3e817a22878d8c6825655/sdcard/c480x272/WIDGETS/TxGPStest/main.lua#L55

So the altitude is to be divided by 10 somewhere.