# General Functions

- [GREY()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/grey.md)
- [accessTelemetryPush()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/accesstelemetrypush.md)
- [chdir(directory)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/chdir.md)
- [crossfireTelemetryPop()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypop.md)
- [crossfireTelemetryPush()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/crossfiretelemetrypush.md)
- [defaultChannel(stick)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultchannel.md)
- [defaultStick(channel)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/defaultstick.md)
- [getAvailableMemory()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getavailablememory.md)
- [getDateTime()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getdatetime.md)
- [getFieldInfo(source)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getfieldinfo.md)
- [getFlightMode(mode)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getflightmode.md)
- [getGeneralSettings()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getgeneralsettings.md)
- [getGlobalTimer()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getglobaltimer.md)
- [getLogicalSwitchValue(id)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getlogicalswitchvalue-id.md)
- [getRAS()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getras.md)
- [getRSSI()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrssi.md)
- [getRotEncSpeed()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrotencspeed.md)
- [getRtcTime()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getrtctime.md)
- [getShmVar(id)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getshmvar-id.md)
- [getSourceIndex(sourceName)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourceindex-sourcename.md)
- [getSourceName(sourceIndex)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getsourcename-sourceindex.md)
- [getSwitchIndex(positionName)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchindex-positionname.md)
- [getSwitchName(switchIndex)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchname-switchindex.md)
- [getSwitchValue(switchIndex)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getswitchvalue-switchindex.md)
- [getTime()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettime.md)
- [getTxGPS()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/gettxgps.md)
- [getUsage()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getusage.md)
- [getValue(source)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getvalue.md)
- [getVersion()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/getversion.md)
- [killEvents(key)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md)
- [loadScript(file \[, mode\], \[,env\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/loadscript.md)
- [multiBuffer(address\[,value\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/multibuffer.md)
- [playDuration(duration \[, hourFormat\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playduration.md)
- [playFile(name)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playfile.md)
- [playHaptic(duration, pause \[, flags\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playhaptic.md)
- [playNumber(value, unit \[, attributes\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playnumber.md)
- [playTone(frequency, duration, pause \[, flags \[, freqIncr\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/playtone.md)
- [popupConfirmation(title, message, event)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupconfirmation.md)
- [popupInput(title, event, input, min, max)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupinput.md)
- [popupWarning(title, event)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md)
- [resetGlobalTimer(\[type\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/resetglobaltimer.md)
- [serialRead(\[num\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialread.md)
- [serialWrite(str)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/serialwrite.md)
- [setSerialBaudrate(baudrate)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setserialbaudrate.md)
- [setShmVar(id, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setshmvar-id-value.md)
- [setStickySwitch(id, value)](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/setstickyswitch-id-value.md)
- [setTelemetryValue(id, subID, instance, value \[, unit \[, precision \[, name\]\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/settelemetryvalue.md)
- [sources(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sources-first-last.md)
- [sportTelemetryPop()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypop.md)
- [sportTelemetryPush()](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/sporttelemetrypush.md)
- [switches(\[first\[, last\]\])](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/switches-first-last.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
