You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Betaflight - As a best practice, it is recommended to use the most recent stable release of Betaflight to obtain the best possible results;
9
+
- Telemetry - Telemetry has to be enabled and supported by the TX / RX for the scripts to be able to communicate with the flight controller;
8
10
- OpenTX - 2.3.12 or newer;
9
11
- EdgeTX - 2.4.0 or newer;
10
12
- ExpressLRS - 2.0.1 or newer;
@@ -19,40 +21,61 @@ Download a zip file containing the latest version from the [releases page](https
19
21
20
22
Unzip the files from the link above and drag the contents of the `obj` folder to your radios SD card. If you do this correctly, the `SCRIPTS` directory will merge with your existing directories, placing the scripts in their appropriate paths. You will know if you did this correctly if the `bf.lua` file shows up in your `/SCRIPTS/TOOLS` directory.
21
23
22
-
### How to install
24
+

23
25
24
-
Bootloader Method
26
+
## How to use
25
27
26
-
1. Power off your transmitter and power it back on in boot loader mode.
27
-
2. Connect a USB cable and open the SD card drive on your computer.
28
-
3. Unzip the file and copy the scripts to the root of the SD card.
29
-
4. Unplug the USB cable and power cycle your transmitter.
28
+
Navigate to the TOOLS menu in OpenTX, select "Betaflight setup" or "Betaflight CMS" and press the [ENTER] button. The first time the script is launched after a clean install or upgrade it will go through it's compile procedure and exit back to the TOOLS menu when it's done.
30
29
31
-
Manual method (varies, based on the model of your transmitter)
30
+
### Betaflight setup
32
31
33
-
1. Power off your transmitter.
34
-
2. Remove the SD card and plug it into a computer
35
-
3. Unzip the file and copy the scripts to the root of the SD card.
36
-
4. Reinsert your SD card into the transmitter
37
-
5. Power up your transmitter.
32
+
The "Betaflight setup" script lets you configure Betaflight through the MSP protocol.
38
33
39
-
If you copied the files correctly, you can now go into the OpenTx Tools screen from the main menu and access the Betaflight Configuration tool. The first time you run the script, a message 'Compiling...' will appear in the display before the script is started - this is normal, and is done to minimise the RAM usage of the script.
Due to issues with input mapping and memory overruns, running the script as a telemetry page **is no longer supported**. The only way to run the script is through the Tools screen in the OpenTX main menu.
38
+
-[+] / [-] / [ROTARY ENCODER] - Used to navigate.
39
+
-[PAGE] - Press to move to the next page. Long press to move to the previous page.
40
+
-[ENTER] - Press to access the selected element. Long press to open the function menu.
41
+
-[EXIT] - Press to go back or exit the script.
44
42
45
-
### Setting up VTX Tables
43
+
#### Saving your changes
44
+
45
+
Any changes to parameters in the script will not take effect until a save is manually initiated. Change the parameters you want to change, open the function menu by long pressing [ENTER] and select "save page" to send the modified parameters back to the flight controller.
46
+
47
+
#### Setting up VTX tables
46
48
47
49
If you are using a VTX that supports the SmartAudio or Tramp protocols then bands and channels etc. are managed using VTX tables since Betaflight version 4.1.0. The script will be downloading and storing the current VTX table for every model the first time the model is connected and the script is run. If you change the VTX table, you have to re-load the updated VTX table in the script, by choosing the 'vtx tables' option in the function menu.
48
50
51
+
Depending on the size of the vtx tables and the telemetry protocol used, downloading the vtx tables can take a while.
-[ROLL] - Enter menu or change selected parameter.
67
+
-[YAW] - Left to go back and right to enter the "SAVE / EXIT" menu.
68
+
-[+] / [ENTER] - Manual refresh. Press if the script doesn't update.
69
+
-[EXIT] - Close CMS menu and exit script. **!! IMPORTANT: Single press only. Long press will exit the script without closing CMS and as a result you will not be able to arm !!**
70
+
49
71
### Background script
50
-
The optional background script offers RTC synchronization and RSSI through MSP. It can be setup as a special or global function in OpenTX. The image below shows how to run the background script as a special function.
The optional background script offers RTC synchronization and RSSI through MSP. RSSI will only be sent if no other RSSI source is detected. It can be setup as a special or global function in OpenTX. The image below shows how to run the background script as a special function.
Unstable testing versions of the latest builds of the Lua Script can be downloaded from [here](https://github.com/betaflight/betaflight-tx-lua-scripts-nightlies/releases).
57
80
58
81
Be aware that these versions are intended for testing / feedback only, and may be buggy or broken. Caution is advised when using these versions.
0 commit comments