Skip to content

getTxGPS

getTxGPS()

Return the internal GPS position or nil if no valid hardware found

Parameters

None.

Returns

NameTypeDescription
-tablerepresenting the current radio position
FieldTypeDescription
latnumberinternal GPS latitude, positive is North
lonnumberinternal GPS longitude, positive is East
numsatnumbercurrent number of sats locked in by the GPS sensor
fixbooleanfix status
altnumberinternal GPS altitude in 0.1m
speednumberinternal GPSspeed in 0.1m/s
headingnumberinternal GPS ground course estimation in degrees * 10
hdopnumberinternal GPS horizontal dilution of precision

Availability

  • Since: 2.2.2
  • Radio support: all

Source

radio/src/lua/api_general.cpp