Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the GPS widget's altitude #134

Open
DavBfr opened this issue Mar 5, 2024 · 0 comments
Open

Issue with the GPS widget's altitude #134

DavBfr opened this issue Mar 5, 2024 · 0 comments

Comments

@DavBfr
Copy link

DavBfr commented Mar 5, 2024

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.

lcd.drawText(INDENT, 100, "Alt: " .. string.format("%d",GPSTable.alt) .. " m", LEFT + TEXT_COLOR) -- internal gpsData.altitude (precision 1m)

So the altitude is to be divided by 10 somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant