Skip to content

Commit e4d668b

Browse files
authored
Merge pull request #427 from klutvott123/how-to-use
Update readme for 1.6.0
2 parents 37ff9c5 + 4702acf commit e4d668b

File tree

8 files changed

+44
-21
lines changed

8 files changed

+44
-21
lines changed

README.md

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Betaflight TX Lua Scripts
1+
![BF lua logo light mode](docs/assets/images/bf_lua_logo_light_mode.png#gh-light-mode-only)
2+
![BF lua logo dark mode](docs/assets/images/bf_lua_logo_dark_mode.png#gh-dark-mode-only)
23

34
[![Latest version](https://img.shields.io/github/v/release/betaflight/betaflight-tx-lua-scripts)](https://github.com/betaflight/betaflight-tx-lua-scripts/releases) [![Build Status](https://api.travis-ci.com/betaflight/betaflight-tx-lua-scripts.svg?branch=master)](https://travis-ci.com/betaflight/betaflight-tx-lua-scripts) [![Build Status](https://dev.azure.com/Betaflight/Betaflight%20Nightlies/_apis/build/status/betaflight.betaflight-tx-lua-scripts?branchName=master)](https://dev.azure.com/Betaflight/Betaflight%20Nightlies/_build/latest?definitionId=1&branchName=master) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
45

5-
## Firmware Considerations
6+
## Requirements
67

78
- 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;
810
- OpenTX - 2.3.12 or newer;
911
- EdgeTX - 2.4.0 or newer;
1012
- ExpressLRS - 2.0.1 or newer;
@@ -19,40 +21,61 @@ Download a zip file containing the latest version from the [releases page](https
1921

2022
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.
2123

22-
### How to install
24+
![Install](docs/assets/images/install.gif)
2325

24-
Bootloader Method
26+
## How to use
2527

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.
3029

31-
Manual method (varies, based on the model of your transmitter)
30+
### Betaflight setup
3231

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.
3833

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.
34+
<kbd>![Betaflight setup](docs/assets/images/how_to_use.gif)</kbd>
4035

41-
### Running the script as a telemetry page
36+
#### Controls
4237

43-
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.
4442

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
4648

4749
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.
4850

51+
Depending on the size of the vtx tables and the telemetry protocol used, downloading the vtx tables can take a while.
52+
53+
<kbd>![Download VTX tables](docs/assets/images/download_vtx_tables.gif)</kbd>
54+
55+
### Betaflight CMS
56+
57+
**!! IMPORTANT: TBS Crossfire/Tracer only !!**
58+
59+
"Betaflight CMS" lets you access the same CMS menu that is available in the OSD.
60+
61+
<kbd>![Betaflight CMS](docs/assets/images/how_to_use_cms.gif)</kbd>
62+
63+
#### Controls
64+
65+
- [PITCH] - Navigate the current menu.
66+
- [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+
4971
### 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.
5172

52-
![Background script setup](docs/assets/images/background_script_setup.png)
73+
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.
74+
75+
<kbd>![Background script setup](docs/assets/images/background_script_setup.png)</kbd>
5376

77+
## Unstable testing versions
5478

55-
## Unstable Testing Versions
5679
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).
5780

5881
Be aware that these versions are intended for testing / feedback only, and may be buggy or broken. Caution is advised when using these versions.
-66 Bytes
Loading
53.3 KB
Loading
67.2 KB
Loading
5.73 KB
Loading

docs/assets/images/how_to_use.gif

10.8 KB
Loading

docs/assets/images/how_to_use_cms.gif

8.58 KB
Loading

docs/assets/images/install.gif

261 KB
Loading

0 commit comments

Comments
 (0)