OpenTX Lua Function Scripts
Contents
What Is A Function Script
- Selected and configured on the special functions screen by selecting the Lua Script function
- They are executed based on switch position
- Typically used for customized announcements
- The number of scripts is limited only by the number of configurable special function lines
- Do not display on the LCD screen
Function Script File Location
Setup Using The Transmitter
- Select and configure the Lua function script from the SPECIAL FUNCTIONS screen
- On the SPECIAL FUNCTIONS screen add a special function line using Play Script as the function
Sample Script Setup
- Download GtStd.lua (right click and Save As, Download Linked File)
- Place the file
SD Card > /SCRIPTS/FUNCTIONS/
- Select the model to be edited
- Press PAGE repeatedly until the SPECIAL FUNCTIONS screen is displayed
- Press ENT
Move a switch on the transmitter to the desired active position
- Press ENT
Scroll to the next field
- Press ENT
Scroll to select the Play Script function
- Press ENT
Scroll to the next field
- Press ENT
Scroll to select the script to execute
- Press ENT
- Press EXIT
- To execute the script move the switch to the active position
Note the switch filed becomes emphasized/bold when active
This was just an introduction to using a function script. It does not do anything useful. However now that you understand what function scripts are and how to use them you can now use any function script you come across.