betaflight/betaflight-tx-lua-scripts
Fork: 143 Star: 611 (更新于 2024-12-15 13:15:32)
license: GPL-3.0
Language: Lua .
Collection of scripts to configure Betaflight from your TX (currently only supported in OpenTx)
最后发布版本: 1.7.0 ( 2023-01-31 04:13:36)
Requirements
- Betaflight - As a best practice, it is recommended to use the most recent stable release of Betaflight to obtain the best possible results;
- Telemetry - Telemetry has to be enabled in Betaflight Receiver tab and supported by the TX / RX for the scripts to be able to communicate with the flight controller;
- OpenTX - 2.3.12 or newer;
- EdgeTX - 2.4.0 or newer;
- ExpressLRS - 2.0.1 or newer;
- TBS Crossfire/Tracer TX / RX - v2.11 or newer;
- FrSky TX / RX with support for SmartPort - While most receivers with SmartPort support work fine, it is recommended to update the receiver to the most recent firmware version to correct any known bugs in telemetry.
- ImmersionRC Ghost RX module - Latest firmware and module set to RF Mode "Race250" - see (Ghost receiver manual pg 36-38) (Other RF Modes have issues or do not have telemetry to allow Betaflight LUA to work).
- Baud rate - Set to 400K in EdgeTX/OpenTX for Crossfire, Tracer, ExpressLRS.
Installing
!! IMPORTANT: DON'T COPY THE CONTENTS OF THIS REPOSITORY ONTO YOUR SDCARD !!
Download a zip file containing the latest version from the releases page.
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.
How to use
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.
Betaflight setup
The "Betaflight setup" script lets you configure Betaflight through the MSP protocol.
Controls
- [+] / [-] / [ROTARY ENCODER] - Used to navigate.
- [PAGE] - Press to move to the next page. Long press to move to the previous page.
- [ENTER] - Press to access the selected element. Long press to open the function menu.
- [EXIT] - Press to go back or exit the script.
Saving your changes
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.
Setting up VTX tables
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.
Depending on the size of the vtx tables and the telemetry protocol used, downloading the vtx tables can take a while.
Please note that if the "VTX" feature wasn't included in your Betaflight firmware build, the downloading of the VTX tables will be skipped and the VTX menu item won't be available. The initial setup of the VTX/VTX tables must be done using the Configurator.
Betaflight CMS
!! IMPORTANT: TBS Crossfire/Tracer only !!
"Betaflight CMS" lets you access the same CMS menu that is available in the OSD.
Controls
- [PITCH] - Navigate the current menu.
- [ROLL] - Enter menu or change selected parameter.
- [YAW] - Left to go back and right to enter the "SAVE / EXIT" menu.
- [+] / [ENTER] - Manual refresh. Press if the script doesn't update.
- [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 !!
Background script
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
Unstable testing versions of the latest builds of the Lua Script can be downloaded from here.
Be aware that these versions are intended for testing / feedback only, and may be buggy or broken. Caution is advised when using these versions.
Building from source
- Be sure to have
make
andluac
in version 5.2 installed in the path - Run
make
from the root folder - The installation files will be created in the
obj
folder. Copy the files to your transmitter as instructed in the 'Installing' section as if you unzipped from a downloaded file.
最近版本更新:(数据更新于 1970-01-01 00:00:00)
2023-01-31 04:13:36 1.7.0
2022-06-14 12:38:43 1.6.0
2020-05-12 21:43:27 1.5.0
2019-10-15 05:55:41 1.4.1
2019-10-13 11:08:11 1.4.0
2019-06-03 17:01:23 1.3.0
2019-05-11 20:11:02 1.2.1
2019-04-29 17:38:45 1.2.0
2018-10-18 20:22:07 1.1.0
2018-06-03 22:30:59 v1.0.2
主题(topics):
betaflight, frsky, hacktoberfest, lua-script, opentx, taranis
betaflight/betaflight-tx-lua-scripts同语言 Lua最近更新仓库
2024-12-17 14:23:26 xiaorouji/openwrt-passwall
2024-12-16 03:27:54 LazyVim/LazyVim
2024-12-12 21:50:18 iDvel/rime-ice
2024-12-11 09:02:10 Saghen/blink.cmp
2024-12-05 23:13:55 xiaorouji/openwrt-passwall2
2024-12-05 17:54:30 kenzok8/small