Skip to content

Fix ANT indexing on EdgeTX 2.12.3+, label X-band paths - #39

Merged
jurgelenas merged 1 commit into
unified-lua-lspfrom
fix-ant-indexing
Oct 4, 2026
Merged

jurgelenas merged 1 commit into
unified-lua-lspfrom
fix-ant-indexing

Conversation

@jurgelenas

Copy link
Copy Markdown
Member

EdgeTX 2.12.3 (EdgeTX/edgetx#7667) made the ELRS ANT sensor 1-based. The widget assumed 0-based, so on 2.12.3+ antenna 1 read as antenna 2 and the RSSI shown was 2RSS (0 dBm on single-path receivers).

  • Latch the encoding from the first ANT of 0 or 2 seen while telemetry streams; use antennas 1/2 internally. Until known, the stronger RSSI picks the antenna.
  • X modes (X100Full/X150): full-screen rows label the paths SubG / 2.4 and show the active band.
  • New xband simulator scenario.

EdgeTX 2.12.3 (#7667) reports ANT 1-based; earlier versions 0-based.
Latch the base from the first 0 or 2 seen while streaming and keep
antennas 1/2 internally; fall back to the stronger RSSI until known.

X modes: path 1 is sub-GHz, path 2 is 2.4 GHz; the full-screen rows
label them SubG / 2.4. Adds an xband simulator scenario.
@jurgelenas
jurgelenas requested a review from CapnBry October 3, 2026 22:35

@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.

This is a good compromise that works either way, once it flips antennas once so I think that's acceptable. Seems to work properly on single and dual RXes, on handsets that label the antenna 1 or 0 or 2.

I still think we should reconsider the renumbering upstream but this works regardless of that decision.

@jurgelenas
jurgelenas merged commit da26914 into unified-lua-lsp Oct 4, 2026
@jurgelenas

Copy link
Copy Markdown
Member Author

This is a good compromise that works either way, once it flips antennas once so I think that's acceptable. Seems to work properly on single and dual RXes, on handsets that label the antenna 1 or 0 or 2.

I still think we should reconsider the renumbering upstream but this works regardless of that decision.

I think it is a bit late to reconsider since it was released in latest EdgeTX release already.

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