# Model Functions

- [model.defaultInputs()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/defaultinputs.md)
- [model.deleteFlightModes()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteflightmodes.md)
- [model.deleteInput(input, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinput.md)
- [model.deleteInputs()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deleteinputs.md)
- [model.deleteMix(channel, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemix.md)
- [model.deleteMixes()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/deletemixes.md)
- [model.getCurve(curve)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcurve.md)
- [model.getCustomFunction(function)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getcustomfunction.md)
- [model.getFlightMode(index)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getflightmode.md)
- [model.getGlobalVariable(index, flight\_mode)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getglobalvariable.md)
- [model.getInfo()](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinfo.md)
- [model.getInput(input, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinput.md)
- [model.getInputsCount(input)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getinputscount.md)
- [model.getLogicalSwitch(switch)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getlogicalswitch.md)
- [model.getMix(channel, line)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmix.md)
- [model.getMixesCount(channel)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmixescount.md)
- [model.getModule(index)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getmodule.md)
- [model.getOutput(index)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getoutput.md)
- [model.getSensor(sensor)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/getsensor.md)
- [model.getTimer(timer)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/gettimer.md)
- [model.insertInput(input, line, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertinput.md)
- [model.insertMix(channel, line, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/insertmix.md)
- [model.resetSensor(sensor)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resetsensor.md)
- [model.resetTimer(timer)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/resettimer.md)
- [model.setCurve(curve, params)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcurve.md)
- [model.setCustomFunction(function, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setcustomfunction.md)
- [model.setFlightMode(index, params)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setflightmode.md)
- [model.setGlobalVariable(index, flight\_mode, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setglobalvariable.md)
- [model.setInfo(value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setinfo.md)
- [model.setLogicalSwitch(switch, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setlogicalswitch.md)
- [model.setModule(index, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setmodule.md)
- [model.setOutput(index, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/setoutput.md)
- [model.setTimer(timer, value)](https://luadoc.edgetx.org/edgetx-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model/settimer.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-v2.7/part_iii_-_opentx_lua_api_reference/model-functions-less-than-greater-than-luadoc-begin-model.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.
