> 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/getflightmode.md).

# getFlightMode(mode)

Return flight mode data.

@status current Introduced in 2.1.7

## Parameters

* `mode` (number) flight mode number to return (0 - 8). If mode parameter is not specified (or contains invalid value), then the current flight mode data is returned.

## Return value

* `multiple` returns 2 values:
* (number) (current) flight mode number (0 - 8)
* (string) (current) flight mode name
