Skip to content

mf0o/crsf_SA_lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Some fixes to original script

Changes

    1. It's working (there was incorrect call to the script at the end of debug.lua
    1. It works on Radiomaster TX16S (should also work on Jumper and Horus) other radios make require some tweaks to supportedRadios list in CROSSFIRE/DEVADDR.lua

Some code was borrowed from ELSR setup script https://github.com/ExpressLRS/ExpressLRS

TBS Crossfire SmartAudio Script

Foreword: I'm not an OpenTX or experienced LUA programmer. Just sharing a homebrewed script.

This LUA script lets you change the output power of your a VTX which is connnected to a TBS Crossfire RX, based on a switch on your Radio.

The work is done through a MIXERS script, for easier setup a debug CROSSFIRE Lua Script is provided.

Requirements

Installation

    1. connect the smartaudio port of your VTX to CH1 or CH4 of the TBS Crossfire RX
    1. set the output (of the wired channel) to "smartaudio" via the normal crossfire.lua or OLED screen
    1. copy DEVADDR.lua and DEBUG.lua to your CROSSFIRE folder and execute DEBUG.lua
    1. navigate to your "XF Nano RX", a section VTX should be visible
    1. note the deviceID, address and value of the power setting
    1. place cfSA.lua into you SCRIPTS/MIXES folder
    1. enable the script on the models "CUSTOM SCRIPTS" page in openTX
  • 8.1) set "LEVEL" to a globalvar of your choice

  • 8.2) set "ADDR" to the address obtained in step #5

  • 8.3) set "DEVICEID" to the deviceID obtained in step #5

  • 8.4) optional, enable beep or sounds on script execution

    1. use SPECIAL FUNCTIONS to alter the GVAR and enter the powerlevel of choice

Disclaimer

Use on own risk, handle with care & without any warranty!

About

lua script to control your smartaudio VTX connected to TBS crossfire RX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages