Skip to content

Add ExpressLRS telemetry script for B&W radios - #42

Closed
jurgelenas wants to merge 3 commits into
masterfrom
bw-tlm
Closed

jurgelenas wants to merge 3 commits into
masterfrom
bw-tlm

Conversation

@jurgelenas

Copy link
Copy Markdown
Member

No description provided.

ELRVTX shows the VTX tuning, power and the six 6POS presets on a
128x64 dashboard; ENTER opens a menu with the colour widget's
settings (VTX fields, Send VTx, 6POS quick change, presets).

The VTX Admin core moves to SCRIPTS/ELRS/vtx/ so the widget and the
telemetry script share it, along with the presets, now stored in
SCRIPTS/ELRS/vtx/presets.txt. The core ticks from background() so the
6POS automation runs whatever page is shown.

To fit B&W memory the menu is table-driven, dialogs load only when
needed, and the session drops discovery fields it no longer needs.
The loader reports why a script failed to load.
ELRTLM shows link quality, the LQ and RSSI headroom bars, RSSI against
the rate's sensitivity, RF mode, power, battery, TQly and TRSS on a
128x64 dashboard; ENTER opens a scrolling list of every reading the
colour widget's full-screen page shows.

The link state and RF mode tables move to SCRIPTS/ELRS/telemetry/ so
the widget and the telemetry script share them. RfModes no longer uses
table.concat, which B&W radios lack.
B&W firmware has one CRSF queue for every Lua script, so ELRTLM's drain
took the parameter frames VTX Admin was waiting for and left ELRVTX
stuck discovering. On B&W crsf.lua now pops into a short shared log and
gives each consumer its own copy through a per-consumer cursor. The
telemetry scripts share one crsf through _crsfSingleton and reset its
sensor cache on load, as the global outlives model changes.

The simulator mock now sees a single consumer on B&W, as the firmware
queue does.
@jurgelenas jurgelenas closed this Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant