mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 22:35:12 +03:00
7 of 8 ...
This commit is contained in:
parent
8a93eb8461
commit
c6f2c62919
1 changed files with 1 additions and 1 deletions
|
@ -867,7 +867,7 @@ Return the internal GPS position or nil if no valid hardware found
|
||||||
static int luaGetTxGPS(lua_State * L)
|
static int luaGetTxGPS(lua_State * L)
|
||||||
{
|
{
|
||||||
#if defined(INTERNAL_GPS)
|
#if defined(INTERNAL_GPS)
|
||||||
lua_createtable(L, 0, 7);
|
lua_createtable(L, 0, 8);
|
||||||
lua_pushtablenumber(L, "lat", gpsData.latitude * 0.000001);
|
lua_pushtablenumber(L, "lat", gpsData.latitude * 0.000001);
|
||||||
lua_pushtablenumber(L, "lon", gpsData.longitude * 0.000001);
|
lua_pushtablenumber(L, "lon", gpsData.longitude * 0.000001);
|
||||||
lua_pushtableinteger(L, "numsat", gpsData.numSat);
|
lua_pushtableinteger(L, "numsat", gpsData.numSat);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue