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

Telemetry Stopped After Upgrading TX from OpenTX to EdgeTX #111

Closed NateTL closed 1 year ago

NateTL commented 1 year ago

I am running V2.2.1 (had same problem with previous versions as well) on a Jumper T16 running EdgeTX 2.7.0 and a R9M TX module. The LUA widget is not showing any telemetry despite the fact it shows up fine in the model settings Telemetry page. Over a year ago I upgraded from OpenTX to EdgeTX and this is when it stopped working. I tried many things to get it working and then just gave up. I have three different fixed wing aircraft and they all have the same issue. I am currently running iNav v6 but had the same problem on previous versions (V4 and V2).

I guess my first question is whether this specific combination of T16, EdgeTX and a R9M should be working? Does anyone else have it working? If the answer is yes, I'm wondering what I might try to get this working? I am able to create a standard widget to display things like distance to home, altitude, GPS co-ordinates, flight battery voltage, etc. but would much prefer to use the LUA telemetry script. Thanks.

Screenshots

Here are some screenshots showing the telemetry working in the model setup and a regular widget and one showing it not working in the LUA script. OneDrive_1_2023-08-12.zip

Radio and model settings

The EdgeTX models and .dat file are attached. The models that have this problem are called Dart 250g, Nano Talon and Nano Goblin. LUA-Files.zip

stronnag commented 1 year ago

Please provide EdgeTX telemetry logs.

NateTL commented 1 year ago

Here is a log from the Dart 250g. Dart 250g-2023-05-27-102703.csv Here is a more recent log from another of the planes with the issue: Nano Goblin-2023-08-05-110705.csv

stronnag commented 1 year ago

Thanks. I had a brief look at the Nano Goblin log. This indicates some issue with telemetry as seen by the radio, for example:

This bizarre log indicates that the problem is outside of the Lua Widget.

NateTL commented 1 year ago

Not sure why that log file is wonky. I looked at a few others and they all have more realistic values and I have the problem with them as well. Here is another one (converted to .xlsx as I find them easier to work with). Does it look any better or do you see things in there that would mess with the LUA script? Thanks for your time in looking into this.

Nano Talon-2022-06-25-085542.xlsx

stronnag commented 1 year ago

Converting logs to proprietary formats really does not help ...

NateTL commented 1 year ago

Sorry, here is another in CSV... Nano Talon-2022-08-20-083428-CRASH.csv

stronnag commented 1 year ago

I had a look at the Dart log. It seems sane Screenshot from 2023-08-12 21-33-30

It replays in the Companion / Simulator into the INAV Lua just fine too.

Screenshot from 2023-08-12 21-31-12

stronnag commented 1 year ago

image

NateTL commented 1 year ago

Yes, I've looked at them on Google Earth before so figured the problem isn't with the telemetry data. Just can't figure out why it doesn't display anything on the LUA script widget. Any idea what might be the issue or things I could try? Should I be asking this kind of a question elsewhere? Thanks again.

stronnag commented 1 year ago

The widget is just a messenger for the data obtained via OTX/ETX APIs. In order to display in simplistic terms it requires "telemetry", i.e. RSSI > 0 and for flight data that the FC is armed.

The reasonable logs both replay as expected via the Companion; I would suspect some corruption of the models from an earlier OpenTX to EdgeTX conversion (this was not perfect in early ETX and then again with the binary to YAML transition_.

If it were my issue, I'd:

NateTL commented 1 year ago

OK, thanks for the suggestions - will try both of those and see what happens.