Skip to content

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

Merged
jurgelenas merged 4 commits into
masterfrom
bw-tlm
Nov 1, 2026
Merged

jurgelenas merged 4 commits into
masterfrom
bw-tlm

Conversation

@jurgelenas

Copy link
Copy Markdown
Member

No description provided.

@jurgelenas
jurgelenas added this pull request to stack #44 October 7, 2026 09:24
@jurgelenas
jurgelenas requested a review from CapnBry October 7, 2026 09:25
@jurgelenas

jurgelenas commented Oct 7, 2026 •

Copy link
Copy Markdown
Member Author

UI for review

_overview-states _overview-telemetry _overview-vtx-presets

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to approve this one since it is good to go but please fix the singleton comments in state / development.md

This looks great. Way to go making a little mini version of the widget. Everything I thought "I bet he didn't think of ___" you already thought of.

Man I did not know that globals stay in lua context across model loads but the telemetry scripts are unloaded and reloaded even if both models have it enabled. I had to look that one up to be sure!

Comment thread src/SCRIPTS/ELRS/telemetry/state.lua Resolved
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Test build for 465753e

  • Download: expresslrs-lua-pr43-465753e.zip (requires a GitHub login; extract it, then extract the inner zip onto the SD card root). The tools show version 465753e.
  • Or install from source with: edgetx-cli pkg install ExpressLRS/Lua@bw-tlm (shows version dev)

Base automatically changed from bw-vtx-admin to master November 1, 2026 21:03
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 merged commit ac4aa1c into master Nov 1, 2026
4 checks passed
@jurgelenas
jurgelenas deleted the bw-tlm branch November 1, 2026 21:05
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.

2 participants