Using LuaTelemetry v2.4 (the new tx16s.lua 800x480 layout added in PR #202) on a RadioMaster TX16S MK3, EdgeTX 2.12.0, connected to a freshly-configured 9" INAV multirotor/wing via CRSF (ExpressLRS 4.x, internal Gemini-X module).
The script loads fine with no telemetry connected. As soon as real INAV telemetry data starts arriving (link established, sensors populated), the widget immediately crashes:
in refresh(): /SCRIPTS/TELEMETRY/iNav/tx16s.lua:599: bad argument #5 to 'drawGauge' (number has no integer representation)
Note: I also observed a related crash with the same script/error on a Betaflight craft (not the officially supported firmware for this widget), where moving the right stick triggered a cascade of spurious flight-mode voice announcements ("ARMED", "HORIZON MODE", "ANGLE MODE", etc.) followed by the same crash. Mentioning this only as additional context — the INAV crash below is the priority since it's the supported use case and is immediately reproducible.
To reproduce
Flash/boot the TX16S MK3 with EdgeTX 2.12.0 and LuaTelemetry v2.4 (tx16s.lua, 800x480 layout) on the SD card
Set up a fresh model for a 9" INAV craft, CRSF telemetry via ExpressLRS
Open the telemetry screen with the iNav LuaTelemetry widget — confirm it renders with no telemetry connected
Power on / connect the INAV FC so telemetry data starts flowing
Widget crashes almost immediately once real data arrives, throwing the error above
Expected behavior
The widget should render live INAV telemetry data (GPS, attitude, battery, etc.) without crashing once a real data stream begins.
Screenshots
(attached — EdgeTX error screen showing in refresh(): /SCRIPTS/TELEMETRY/iNav/tx16s.lua:599: bad argument #5 to 'drawGauge' (has no integer representation))
Radio and model settings
Additional context
Radio: RadioMaster TX16S MK3 (800x480 color touchscreen)
Firmware: EdgeTX 2.12.0
LuaTelemetry version: v2.4 ("larger screens" release, tx16s.lua from PR #202)
RF link: ExpressLRS 4.x, internal Gemini-X module, CRSF
FC (primary/reproducible case): INAV, 9" craft, freshly configured
FC (secondary observation, unsupported use case): Betaflight
Crash is immediate on real telemetry data arriving — suggests a value from live INAV sensor data (possibly a percentage/fill computation with a fractional result) is being passed to drawGauge's fill argument without being cast to an integer, in the new gauge-rendering code from PR #202
Not present before updating to v2.4's tx16s.lua
Using LuaTelemetry v2.4 (the new tx16s.lua 800x480 layout added in PR #202) on a RadioMaster TX16S MK3, EdgeTX 2.12.0, connected to a freshly-configured 9" INAV multirotor/wing via CRSF (ExpressLRS 4.x, internal Gemini-X module).
The script loads fine with no telemetry connected. As soon as real INAV telemetry data starts arriving (link established, sensors populated), the widget immediately crashes:
in refresh(): /SCRIPTS/TELEMETRY/iNav/tx16s.lua:599: bad argument #5 to 'drawGauge' (number has no integer representation)
Note: I also observed a related crash with the same script/error on a Betaflight craft (not the officially supported firmware for this widget), where moving the right stick triggered a cascade of spurious flight-mode voice announcements ("ARMED", "HORIZON MODE", "ANGLE MODE", etc.) followed by the same crash. Mentioning this only as additional context — the INAV crash below is the priority since it's the supported use case and is immediately reproducible.
To reproduce
Flash/boot the TX16S MK3 with EdgeTX 2.12.0 and LuaTelemetry v2.4 (tx16s.lua, 800x480 layout) on the SD card
Set up a fresh model for a 9" INAV craft, CRSF telemetry via ExpressLRS
Open the telemetry screen with the iNav LuaTelemetry widget — confirm it renders with no telemetry connected
Power on / connect the INAV FC so telemetry data starts flowing
Widget crashes almost immediately once real data arrives, throwing the error above
Expected behavior
The widget should render live INAV telemetry data (GPS, attitude, battery, etc.) without crashing once a real data stream begins.
Screenshots
(attached — EdgeTX error screen showing in refresh(): /SCRIPTS/TELEMETRY/iNav/tx16s.lua:599: bad argument #5 to 'drawGauge' (has no integer representation))
Radio and model settings
Additional context
Radio: RadioMaster TX16S MK3 (800x480 color touchscreen)
Firmware: EdgeTX 2.12.0
LuaTelemetry version: v2.4 ("larger screens" release, tx16s.lua from PR #202)
RF link: ExpressLRS 4.x, internal Gemini-X module, CRSF
FC (primary/reproducible case): INAV, 9" craft, freshly configured
FC (secondary observation, unsupported use case): Betaflight
Crash is immediate on real telemetry data arriving — suggests a value from live INAV sensor data (possibly a percentage/fill computation with a fractional result) is being passed to drawGauge's fill argument without being cast to an integer, in the new gauge-rendering code from PR #202
Not present before updating to v2.4's tx16s.lua