• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

betaflight/betaflight-tx-lua-scripts: Collection of scripts to configure Betafli ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

betaflight/betaflight-tx-lua-scripts

开源软件地址(OpenSource Url):

https://github.com/betaflight/betaflight-tx-lua-scripts

开源编程语言(OpenSource Language):

Lua 98.9%

开源软件介绍(OpenSource Introduction):

BF lua logo light mode BF lua logo dark mode

Latest version Build Status Build Status License: GPL v3

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 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;
  • Crossfire 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.

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.

Install

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.

Betaflight setup

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.

Download VTX tables

Betaflight CMS

!! IMPORTANT: TBS Crossfire/Tracer only !!

"Betaflight CMS" lets you access the same CMS menu that is available in the OSD.

Betaflight CMS

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.

Background script setup

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 and luac 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.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap