I’m looking at how to use LUA scripts and was wondering how to configure them I am OpenTX radio.
Thanks.
More info: at present, I don’t want to write my own scripts, only run scripts that I can find online, such as VTX control.
Drones and Model Aircraft Stack Exchange is a question and answer site for experienced flyers, pilots, and builders of drones and model aircraft. It only takes a minute to sign up.
Sign up to join this communityI’m looking at how to use LUA scripts and was wondering how to configure them I am OpenTX radio.
Thanks.
More info: at present, I don’t want to write my own scripts, only run scripts that I can find online, such as VTX control.
bf.lua
. Now use PAGE button to navigate to VTX page.Additionally if you don't want to go to SD Card each time you can setup telemetry screen:
bf
Now you can run this LUA script from the Home page of the model.
Press "PAGE" button till the telemetry show up and then use "PAGE" to scroll to the screen you selected, like Screen 2
, etc.
The only thing is that if you run scripts from TELEMETRY screen, they will use MENU button to skip pages inside the script, instead of PAGE. Because PAGE flips pages between telemetry screens.
If you have error "Script syntax error: not enough memory" you probably didn't check "luac" during the OpenTX install
Sources:
https://oscarliang.com/betaflight-change-pid-vtx-settings-taranis/
https://oscarliang.com/vtx-control/
https://oscarliang.com/t16-lua-script/
Oscar Liang has a really good page for this specific use case https://oscarliang.com/vtx-control/
And Joshua Bardwell has some really good videos that you can follow along with https://www.youtube.com/watch?v=zFb5IJpM1XU