Lua variables

Help with any software/desktop related issues. e.g. companion9x, eePe, etc
Post Reply
WZ9V
Posts: 39
Joined: Thu Jul 10, 2014 8:29 pm
Country: -

Lua variables

Post by WZ9V »

Are the OpenTX GVars global to the model scope or global to the radio scope?

I'm looking to define a variable at the model level scope that could be read from a telemetry script allowing it to be used in more than one model but customize it self to that model.

I have a FPV Hubsan and a non-FPV one. I have a custom screen that I would like to display vtx freq on the FPV model and not display it on the non-FPV one but not have to write two different scripts. All the other options are the same.

User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Lua variables

Post by Kilrah »

Model.

Just set up a logical switch with fixed ouptut (and opposite state for both models, obviously).
Post Reply

Return to “Software”