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
      • GREY()
      • crossfireTelemetryPop()
      • crossfireTelemetryPush()
      • defaultChannel(stick)
      • defaultStick(channel)
      • getDateTime()
      • getFieldInfo(name)
      • getFlightMode(mode)
      • getGeneralSettings()
      • getRAS()
      • getRSSI()
      • getRtcTime()
      • getTime()
      • getTxGPS()
      • getUsage()
      • getValue(source)
      • getVersion()
      • killEvents(key)
      • loadScript(file [, mode], [,env])
      • playDuration(duration [, hourFormat])
      • playFile(name)
      • playHaptic(duration, pause [, flags])
      • playNumber(value, unit [, attributes])
      • playTone(frequency, duration, pause [, flags [, freqIncr]])
      • popupConfirmation(title, event)
      • popupInput(title, event, input, min, max)
      • popupWarning(title, event)
      • resetGlobalTimer()
      • setTelemetryValue(id, subID, instance, value [, unit [, precision [, name]]])
      • sportTelemetryPop()
      • sportTelemetryPush()
    • Model Functionschevron-right
    • 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

General Functions

GREY()chevron-rightcrossfireTelemetryPop()chevron-rightcrossfireTelemetryPush()chevron-rightdefaultChannel(stick)chevron-rightdefaultStick(channel)chevron-rightgetDateTime()chevron-rightgetFieldInfo(name)chevron-rightgetFlightMode(mode)chevron-rightgetGeneralSettings()chevron-rightgetRAS()chevron-rightgetRSSI()chevron-rightgetRtcTime()chevron-rightgetTime()chevron-rightgetTxGPS()chevron-rightgetUsage()chevron-rightgetValue(source)chevron-rightgetVersion()chevron-rightkillEvents(key)chevron-rightloadScript(file [, mode], [,env])chevron-rightplayDuration(duration [, hourFormat])chevron-rightplayFile(name)chevron-rightplayHaptic(duration, pause [, flags])chevron-rightplayNumber(value, unit [, attributes])chevron-rightplayTone(frequency, duration, pause [, flags [, freqIncr]])chevron-rightpopupConfirmation(title, event)chevron-rightpopupInput(title, event, input, min, max)chevron-rightpopupWarning(title, event)chevron-rightresetGlobalTimer()chevron-rightsetTelemetryValue(id, subID, instance, value [, unit [, precision [, name]]])chevron-rightsportTelemetryPop()chevron-rightsportTelemetryPush()chevron-right
PreviousKey Event Constantschevron-leftNextGREY()chevron-right

Last updated 4 years ago

Was this helpful?

Was this helpful?