OpenTX 2.2 Lua Reference Guide
search
Ctrlk
  • OpenTX 2.2 Lua Reference Guide
  • Introductionchevron-right
  • Part I - Script Type Overviewchevron-right
  • Part II - OpenTX Lua API Programming Guidechevron-right
  • Part III - OpenTX Lua API Referencechevron-right
    • Constantschevron-right
    • General Functionschevron-right
    • Model Functionschevron-right
      • model.defaultInputs()
      • model.deleteInput(input, line)
      • model.deleteInputs()
      • model.deleteMix(channel, line)
      • model.deleteMixes()
      • model.getCurve(curve)
      • model.getCustomFunction(function)
      • model.getGlobalVariable(index, flight_mode)
      • model.getInfo()
      • model.getInput(input, line)
      • model.getInputsCount(input)
      • model.getLogicalSwitch(switch)
      • model.getMix(channel, line)
      • model.getMixesCount(channel)
      • model.getModule(index)
      • model.getOutput(index)
      • model.getTimer(timer)
      • model.insertInput(input, line, value)
      • model.insertMix(channel, line, value)
      • model.resetTimer(timer)
      • model.setCurve(curve, params)
      • model.setCustomFunction(function, value)
      • model.setGlobalVariable(index, flight_mode, value)
      • model.setInfo(value)
      • model.setLogicalSwitch(switch, value)
      • model.setModule(index, value)
      • model.setOutput(index, value)
      • model.setTimer(timer, value)
    • Lcd Functionschevron-right
    • Bitmap Functionschevron-right
  • Part IV - Converting OpenTX 2.0 Scriptschevron-right
  • Part V - Converting OpenTX 2.1 Scripts
  • Part VI - Advanced Topicschevron-right
  • Part VII - Appendixchevron-right
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Part III - OpenTX Lua API Reference

Model Functions

model.defaultInputs()chevron-rightmodel.deleteInput(input, line)chevron-rightmodel.deleteInputs()chevron-rightmodel.deleteMix(channel, line)chevron-rightmodel.deleteMixes()chevron-rightmodel.getCurve(curve)chevron-rightmodel.getCustomFunction(function)chevron-rightmodel.getGlobalVariable(index, flight_mode)chevron-rightmodel.getInfo()chevron-rightmodel.getInput(input, line)chevron-rightmodel.getInputsCount(input)chevron-rightmodel.getLogicalSwitch(switch)chevron-rightmodel.getMix(channel, line)chevron-rightmodel.getMixesCount(channel)chevron-rightmodel.getModule(index)chevron-rightmodel.getOutput(index)chevron-rightmodel.getTimer(timer)chevron-rightmodel.insertInput(input, line, value)chevron-rightmodel.insertMix(channel, line, value)chevron-rightmodel.resetTimer(timer)chevron-rightmodel.setCurve(curve, params)chevron-rightmodel.setCustomFunction(function, value)chevron-rightmodel.setGlobalVariable(index, flight_mode, value)chevron-rightmodel.setInfo(value)chevron-rightmodel.setLogicalSwitch(switch, value)chevron-rightmodel.setModule(index, value)chevron-rightmodel.setOutput(index, value)chevron-rightmodel.setTimer(timer, value)chevron-right
PrevioussportTelemetryPush()chevron-leftNextmodel.defaultInputs()chevron-right

Last updated 4 years ago

Was this helpful?

Was this helpful?