Page 1 of 1

LUA Scripts "Broken" with OpenTX 2.2 "upgrade"..

Posted: Fri Dec 02, 2016 1:06 am
by oldgazer
I know 2.2 is beta, and I know there will be issues, so please be gentle.

Here is the background:

Taranis X9E.

Two aircraft, #1 is a hexacopter with a Pixhawk running AC3.4.2 #2 is a quad with an APM 2.6 running AC3.2.1. Receivers are X8R's

To get telemetry from the APM I am using a Teensy and Scottflys' Telemetry scripts.

To get telemetry from the Pixhawk I am using Craft and Theory's Flilght Deck 3.03 interface and scripts.

The reason I flashed the radio with 2.2 is two fold. First, support for the C&T hardware was added to AC3.4. Previously one had to flash the Pixhawk with a firmware that had been modified by C&T. Second, the latest version of Flight Deck will only run under OpenTX 2.2..

The problem I have is that although Flight Deck works, Scottflys' does not and OpenTX throws syntax errors. In addition the New Model Wizard hangs.

I have been in touch with C&T, and they tell me the only difference between the 'old' an 'new' scripts is the 'new' scripts are compiled to save space..

So, what I'm wondering is, can this problem be resolved by compiling the 'old' scripts?

Re: LUA Scripts "Broken" with OpenTX 2.2 "upgrade"..

Posted: Fri Dec 02, 2016 7:11 am
by Kilrah
"Scottfly" might be using functions that have changed between 2.1 and 2.2 while C&T weren't, he (or someone else) will have to review and adapt the scripts.

The 2.2 Lua documentation is being worked on these days.
https://opentx.gitbooks.io/opentx-2-2-l ... e/content/