FrskyTelemetryScript icon indicating copy to clipboard operation
FrskyTelemetryScript copied to clipboard

FrSky x18 attempt to index a nil value

Open alexandru-g opened this issue 1 year ago • 8 comments

Installed latest version of lua script on a FrSky X18 and getting the following error: /scripts/yaaputelemetry/lib/resetlib.lua:57: attempt to index a nil value (local 'widget')

After this error appears, the ELRS TX doesn't appear in the menu anymore (the RX appears for some reason) and I cannot configure it. I have to remove the yaapu lua scripts, reboot Ethos, configure the ELRS TX and re-add the yaapu scripts.

alexandru-g avatar Sep 08 '24 16:09 alexandru-g

Hi, which Ethos version?

yaapu avatar Sep 10 '24 10:09 yaapu

@yaapu 1.5.13

alexandru-g avatar Sep 13 '24 13:09 alexandru-g

mhmm, I do not own that radio but on the simulator seems to work all right. Waht would the exacts teps be to reproduce it? Which module? Does the elrs lua script work all right? We might need to ask for help from somebody wit hthe same radio + tx combo :-(

yaapu avatar Sep 13 '24 14:09 yaapu

RadioMaster Ranger Nano 2.4 is the ELRS module.

It works fine-ish. The entire radio lags a bit when I have the widget added (UI is not fluid, even when not in widget). But I have to pause the widget so I can configure the TX and RX. Otherwise, when I press configure, nothing appears in the module list.

alexandru-g avatar Sep 13 '24 14:09 alexandru-g

Same here on a X20RS with Ethos 1.5.15 For reference: https://github.com/FrSkyRC/ETHOS-Feedback-Community/issues/4542

BRSS73 avatar Sep 24 '24 20:09 BRSS73

Did you pause my widget while working on the elrs config script?

yaapu avatar Sep 25 '24 07:09 yaapu

No, I wasn't aware of this possibility.

I found it quickly after reading your comment.

In the meantime, the ELRS script seems to have been modified by the Ethos team to handle concurrent access to the serial buffer, but maybe I'm wrong on that particular point.

BRSS73 avatar Sep 26 '24 18:09 BRSS73

Did you pause my widget while working on the elrs config script?

Yes, that is the only way to enter the ELRS config script. If Yaapu is not paused, the TX/RX doesn't appear in the list.

alexandru-g avatar Sep 27 '24 11:09 alexandru-g