Skip to content

Show -- when PWR is 0, retain last position data, merge RSSI 1 / 2 in to single row and add RSNR when in non FLRC mode - #31

Open
jurgelenas wants to merge 1 commit into
unified-lua-lspfrom
telemetry-widget-updates
Open

jurgelenas wants to merge 1 commit into
unified-lua-lspfrom
telemetry-widget-updates

Conversation

@jurgelenas

Copy link
Copy Markdown
Member

Addresses

Telem Widget - PWR reads 0 mW when not connected but others show --
Telem Widget - No last GPS position on disconnect? If not in your
design plans that's fine, something for later.
Telem Widget - Fullscreen - Maybe merge RSSI 1 / RSSI 2 onto one line
so the RSNR can be added?

…to single row and add RSNR when in non FLRC mdoe

addresses

> Telem Widget - PWR reads 0 mW when not connected but others show --
> Telem Widget - No last GPS position on disconnect? If not in your
design plans that's fine, something for later.
> Telem Widget - Fullscreen - Maybe merge RSSI 1 / RSSI 2 onto one line
so the RSNR can be added?

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

The changes I requested look perfect! However, while testing this I encountered a new issue.

The "Active Antenna" field in the fullscreen basically shows ANT + 1. Someone thought it was a good idea to change EdgeTX so that in an upcoming version, the ANT field coming from ExpressLRS already gets 1 added to it. This creates a problem not just for the fullscreen, but the non-fullscreen ui as well that adds 1 to it, and also the activeRssi() value relies in ANT being 0-1 as well.

Iiiiiii am not sure how to fix this because 0-1 is indistinguishable from 1-2 to the lua script. I feel like maybe this issue alone might be worth considering going to EdgeTX and revert this change? @mha1 What do you suggest as a resolution to the antenna change breaking every Lua script that tries to display the antenna / select which RSSI is active?

EDIT: I suppose we could go by EdgeTX version setting a global constant in our lua that sets the base antenna value as 0 or 1? haha Such a small little quality of life change (make antenna number match 1 / 2 elsewhere) now needing workarounds that will be in the code for years.

@mha1

mha1 commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

ExpressLRS/ExpressLRS#3734

I pointed out the inconsistency between ELRS and EdgeTX and honestly thought it'd be better to make our side consistently using the 0-based naming. Management decided 1-based, so I offered to put in an EdgeTX PR displaying and logging 1-based too.

Options (unsorted)

  • version checked 0 or 1 based interpretation in Lua scripts
  • live with the inconsistency
  • revert the ETX change and also live with the inconsistency
  • change our side to a 0-based naming and revert the ETX change

My vote is on the last bullet point

@mha1

mha1 commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

"Lua script that tries to display the antenna / select which RSSI is active?"

Not very useful, at least for true diversity receivers, isn't it?

@CapnBry

CapnBry commented Sep 21, 2026

Copy link
Copy Markdown
Member

Not very useful, at least for true diversity receivers, isn't it?

I think everything is still sort of working off the system where only one number needs to be shown and they want to pick one.

But anyway I shouldn't hold this up because we need to figure out how to work around this at the larger level and for now this uses the correct way.

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.

3 participants