LUA version OpenTX 2.2.0

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
awolf78
Posts: 2
Joined: Mon Apr 10, 2017 1:37 pm
Country: -

LUA version OpenTX 2.2.0

Post by awolf78 »

Hi,

I'm developing a lua script which is getting quite big and want to use the compiled version without debug info (compiling with -s).
I am using a X7 with OpenTX 2.2.0 RC10.

Which luac version does RC10 support?
Do I have to load both .lua and .luac file of my script on the sd-card?
When I try to use just .luac it won't run on the radio, guessing I have the wrong compiler version?

Thank you in advance for your support.

User avatar
rcdiy
Posts: 190
Joined: Fri Jul 01, 2016 6:13 am
Country: Canada
Contact:

Re: LUA version OpenTX 2.2.0

Post by rcdiy »

First run in companion simulator.
Take the luac file it generates and place it on the SDCARD.
Use the version of the firmware with luac support.
Untitled.png
RCdiy.ca
Stay Safe & Have Fun
OpenTX Manual http://rcdiy.ca
Paying it forward by sharing my Lua scripts, documentation and videos.
awolf78
Posts: 2
Joined: Mon Apr 10, 2017 1:37 pm
Country: -

Re: LUA version OpenTX 2.2.0

Post by awolf78 »

Thank you.

I have just loaded the generated luac file on my radio. I can select it as a script, but it says "No telemetry screens". Does that mean my X7 firmware does not have luac support?
User avatar
rcdiy
Posts: 190
Joined: Fri Jul 01, 2016 6:13 am
Country: Canada
Contact:

Re: LUA version OpenTX 2.2.0

Post by rcdiy »

I don't know that error.
My thoughts are to flash with the latest release candidate firmware using the lua & luac options selected for the firmware download. Backup existing firmware and models first.
I'm no expert so maybe wait to see if anyone else responds.
I use the .lua files and OpenTX creates the luac file and runs it. At least that's my understanding...
RCdiy.ca
Stay Safe & Have Fun
OpenTX Manual http://rcdiy.ca
Paying it forward by sharing my Lua scripts, documentation and videos.

Post Reply

Return to “openTx”