> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md).

# getTxGPS()

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

@status current Introduced in 2.2.2

## Parameters

none

## Return value

* `table` representing the current radio position
* `lat` (number) internal GPS latitude, positive is North
* `lon` (number) internal GPS longitude, positive is East
* 'numsat' (number) current number of sats locked in by the GPS sensor
* 'fix' (boolean) fix status
* '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
