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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user