teckel12 / LuaTelemetry

FrSky SmartPort(S.Port), D-series, F.Port and TBS Crossfire telemetry on all Taranis and Horus transmitters
https://github.com/teckel12/LuaTelemetry/wiki
GNU General Public License v3.0
293 stars 57 forks source link

iNav 2.0.1 LUA 1.5.1 FrSky QX7 + Frsky R9M S.bus+S.port #251

Closed FPVxfun closed 5 years ago

FPVxfun commented 5 years ago

Description: while (long) pressing PAGE button for LUA telemetry access, it is shown the enclosed error. As shown in the second picture, telemetry data are correctly received by QX7

Tx: FrSky QX7S EU (new) running OpenTx 2.2.3, with Tx module R9M, iNav LUA 1.5.1 Rx: FrSky R9M mini Model: WingFC running iNav 2.0.1

QX7.zip img_20190206_175829185_hdr img_20190206_175816777

teckel12 commented 5 years ago

@FPVxfun I ran OpenTX 2.2.3 and your Taranis settings that you included and installed Lua Telemetry 1.5.1 and it worked fine for your WingFC model.

screenshot_x7_19-02-06_17-57-48

My guess is that you didn't install all of the Lua Telemetry files or in the correct location. There's MANY more files that just iNav.lua. Please see the Download & Setup instructions on the following page: https://github.com/iNavFlight/LuaTelemetry/releases Specifically, make sure you're copying both folders and all the contents.

FPVxfun commented 5 years ago

Dear Tim, thank you for your support.

Please consider that all is working ok on my second radio (Horus X12S) and on Q X7 Betaflight scripts are working too.

I could not understand what is going wrong with iNav and Q X7.

Enclosed you can find my SD card content, if necessary.

Could you please send me a SD card working content?

Thanks a lot

SD.zip

FPVxfun commented 5 years ago

Dear Tim, I've also tried the "development build". It worked (for a while) with a screenshot similar to the one you posted, however when I tried to switch to "graphic view", all crashed once again

teckel12 commented 5 years ago

@FPVxfun Make sure you don't have any other lua scripts on other screens. For example, you can't use the Betaflight lua script and Lua Telemetry on difference screens. Taranis transmitters don't have very much memory available for lua scripts.

Remove any other lua scripts from other screens, power cycle your transmitter, and try again.

By the way, I have a Q X7 and v1.5.1 works just fine on it.

FPVxfun commented 5 years ago

Dear Tim, many thanks for your support. The problem seems to be few Q X7 RAM resources. I've disconnected Betaflight LUA script in the 12th menu page and now iNav is working ok.

teckel12 commented 5 years ago

@FPVxfun If you only need the Betaflight script for VTx control, I have a stripped-down version that may work along with Lua Telemetry:

https://github.com/teckel12/VTx

Also, going forward... The plan is to incorporate control of VTx, battery, profiles, etc. in Lua Telemetry so there won't be a need for the Betaflight script. Then, the only reason to use the Betaflight script would be for PID adjustments (which doesn't work well in INAV anyway) and for those cases you would just run thr Betaflight script as a one-time script, not assigned to a screen which uses most of the available RAM.

teckel12 commented 5 years ago

@FPVxfun I've reworked the Tips & Common Problems Wiki page. Could you give it a quick look to see if it would now better guide you to resolving your problem? Thanks!

FPVxfun commented 5 years ago

Awesome! please don't forget to suggest power cycle on-off-on in order to guarantee real RAM de-allocation