You can change Betaflight and VTX settings via LUA script remotely from your Jumper T16 radio. In this guide I will show you how to set it up.
Here is my Jumper T16 review.
What’s Betaflight LUA Script?
With LUA script, you can change many settings in Betaflight from your T16 radio, including PID, rates, looptime, ESC protocols, Feedfoward and many more. You can even change VTX settings like channel and power level.
Make sure your T16 has OpenTX 2.3.1 or newer firmware. You can check this by holding down the “SYS” button, and get to the “Version” page by pressing the “PAGE” key. Here is my tutorial on how to flash OpenTX to your T16.
When flashing OpenTX firmware, make sure you check the boxes for “lua” & “luac” in order to run LUA scripts.
You also have to setup Telemetry correctly first, if you don’t have telemetry, or it’s not working, LUA script is not going to work.
How to Setup LUA Script in T16
Download the latest LUA script (the zip file): https://github.com/betaflight/betaflight-tx-lua-scripts/releases
Unzip the file, there should be a folder named “obj“, and inside that you should see 3 folders: BF, SCRIPTS, and SOUNDS.
You want to copy all these 3 folders to the root directory of your SD card in the T16.
To do this, simply enter bootloader mode on your T16, and insert the USB cable. (Alternatively you can just take the SD card out of the radio and insert it to your computer)
If prompted during files transfer, select “Replace the files in the destination”.
How to Use
To execute LUA script, hold down the “SYS” button to get to Radio Setup.
Press the PAGE button once to get to the SD card page, select the “BF” folder.
Then click on “bf.lua“, and select the option “Execute“.
If Telemetry is working correctly, numbers should populate in the various options. If the numbers are all missing then it means you have no telemetry.
Press the PAGE key to go to the next page, you can go back to the previous page by holding down the PAGE key.
When you run the LUA script, the first page that appear should be the PID page by default. You can change that and start at any particular page, e.g. the VTX settings page,
Go to the folder “SCRIPT” on your SD card, inside the folder “BF“, open and edit the file “ui.lua“. (you can edit lua files with a text editor, but make sure you use the same file extension when saving it, i.e. “.lua”)
Find the line “local currentPage = 1“, and change the number to a page you want. For VTX settings it’s 8.
Save it and close it.
If you get warning “Script syntax error: not enough memory“, you probably forgot to check “luac” when flash OpenTX firmware.