iNavFlight / OpenTX-Telemetry-Widget

INAV Lua Telemetry with support for EdgeTX
https://luatelemetry.readthedocs.io/en/latest/
GNU General Public License v3.0
156 stars 32 forks source link

The script is not working with my system. ELRS + iNav + QX7 #99

Closed 0Balazs closed 1 year ago

0Balazs commented 1 year ago

Describe the bug

The script was worked perfectly with my old rx-tx module (QCZEK LRS) but i bought a new Betafpv 868 elrs system. I am getting the necessary telemtry datas, but an another ID with the Qczek. So the Ianv lua didnt see the datas, only the Voltage and current. But all of the datas is availabke on the telemtry settings screen.

To reproduce

Expected behavior

The script has to see all of the datas and working correkt. Because elrs is using crsf if iam correct. And crsf is supported.

Screenshots

Radio and model settings

Additional context

All Fw is the newest. INav 6.1, OpenTX 2.3.15, iNav lua 2.2.1.

stronnag commented 1 year ago

Please follow the documentation for providing necessary data to investigate the issue, in particular a telemetry log. https://luatelemetry.readthedocs.io/en/latest/Tips-And-Common-Problems/

0Balazs commented 1 year ago

RAngerelrs-2023-05-29.csv

Sorry. There are a telemetry log. I hope it will help.

stronnag commented 1 year ago

I don't see any script issue. Using the Companion, I see on the sensors page (bogus) data. In the script I see the same bogus data. The script reflects exactly the data on the sensors page.

Note I do not have any of this hardware, so unless someone else volunteers, this issue cannot progress.

0Balazs commented 1 year ago

Ok, so my friend has a same setup and a same problem. Some data is correct (but blinking, even if we are using higher packet rate). But the artificial horizont is almost in the deafult position. I am trying read the program but i am new in lua. I am getting the pitch and roll datas are the same ID (001E) but different sub ID (1 and 2). But the name is correct (Roll and Ptch).

haklis commented 1 year ago

Hi, I have the same problem. Here are some details:

I will record telemetry log and see if the problem is present on the opentx simulator as well.

stronnag commented 1 year ago

This is due to a bug in OpenTX. It does not populate the FM (Flight Mode) UNIT_TEXT field correctly. This problem does not exist in EdgeTX (Issue and Edge fix ).

An OpenTX issue was raised for four years ago and closed without being fixed.

Upgrade to EdgeTX and it will work. It cannot be fixed here.

haklis commented 1 year ago

Thanks for the feedback, I will switch over to edge tx. It would be nice however if the documentation specifically mentioned that opentx is not supported with elrs - if it is that combo that causes the bug. 😀

EDIT: I have switched over to EdgeTX and the scripts is now working with ELRS after deleting models to free up enough memory to avoid "syntax error" when script started.

0Balazs commented 1 year ago

Ok, so we tested it with the latest EdgeTX FW, and it is working now.

Thank you.