OpenTX 2.2 Lua Reference Guide
CtrlK
  • OpenTX 2.2 Lua Reference Guide
  • Introduction
  • Part I - Script Type Overview
  • Part II - OpenTX Lua API Programming Guide
  • Part III - OpenTX Lua API Reference
    • Constants
    • General Functions
      • 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 Functions
    • Lcd Functions
    • Bitmap Functions
  • Part IV - Converting OpenTX 2.0 Scripts
  • Part V - Converting OpenTX 2.1 Scripts
  • Part VI - Advanced Topics
  • Part VII - Appendix
Powered by GitBook
On this page

Was this helpful?

  1. Part III - OpenTX Lua API Reference

General Functions

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()
PreviousKey Event ConstantsNextGREY()

Last updated 4 years ago

Was this helpful?