mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Vario value accessible in Lua scripts using getValue("vario")
This commit is contained in:
parent
a5dea34415
commit
634c327ac6
1 changed files with 4 additions and 0 deletions
|
@ -157,6 +157,10 @@ static int luaGetValue(lua_State *L)
|
|||
lua_pushnumber(L, double(frskyData.hub.baroAltitude)/100);
|
||||
return 1;
|
||||
}
|
||||
else if (!strcmp(what, "vario")) {
|
||||
lua_pushnumber(L, double(frskyData.hub.varioSpeed)/100);
|
||||
return 1;
|
||||
}
|
||||
else if (frskyData.hub.gpsFix) {
|
||||
if (!strcmp(what, "latitude")) {
|
||||
lua_pushnumber(L, gpsToDouble(frskyData.hub.gpsLatitudeNS=='S', frskyData.hub.gpsLatitude_bp, frskyData.hub.gpsLatitude_ap));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue