mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 12:25:12 +03:00
x12 gps improvement (#6570)
* Add hdop handling * Add GPS to debug screen * Only update PilotPos when a decent hdop is achieved
This commit is contained in:
parent
328677abed
commit
9792bf52d4
6 changed files with 24 additions and 3 deletions
|
@ -806,6 +806,7 @@ Return the internal GPS position or nil if no valid hardware found
|
|||
* 'alt' (number) internal GPS altitude in 0.1m
|
||||
* 'speed' (number) internal GPSspeed in 0.1m/s
|
||||
* 'heading' (number) internal GPS ground course estimation in degrees * 10
|
||||
* 'hdop' (number) internal GPS horizontal dilution of precision
|
||||
|
||||
@status current Introduced in 2.2.2
|
||||
*/
|
||||
|
@ -819,6 +820,7 @@ static int luaGetTxGPS(lua_State * L)
|
|||
lua_pushtableinteger(L, "alt", gpsData.altitude);
|
||||
lua_pushtableinteger(L, "speed", gpsData.speed);
|
||||
lua_pushtableinteger(L, "heading", gpsData.groundCourse);
|
||||
lua_pushtableinteger(L, "hdop", gpsData.hdop);
|
||||
if (gpsData.fix)
|
||||
lua_pushtableboolean(L, "fix", true);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue