Skip to content

Reduce dynpower SNR down threshold - #3577

Merged
pkendall64 merged 8 commits into
ExpressLRS:masterfrom
mha1:PR_DynP_upd
Mar 29, 2026
Merged

pkendall64 merged 8 commits into
ExpressLRS:masterfrom
mha1:PR_DynP_upd

Conversation

@mha1

@mha1 mha1 commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

4.0.0 introduced a statistical SNR based dynamic power algorithm for packet rates providing SNR (Lora modes). The algorithm calculates a moving SNR mean and its standard deviation (sd). The SNR mean and sd are updated in conditions where LQ is near perfect (>= 99%) as a "really good" reference. This reference is used to calculate (also moving) SNR power up and down thresholds using factors of sd. The original implementation calculated the power down SNR threshold as SNR mean + 1.5sd. This PR tunes the allowed deviation from SNR mean for power down events.

I flight tested this PR with 100Hz full res and now see a behavior similar to 3.6. (which uses fixed thresholds).

image

This change requires more testing. I hope some users will join me in testing different usage scenarios (fpv, LOS, varying ranges different Lora packet rates and power settings) .

mha1 added 5 commits March 8, 2026 10:43
- power down threshold at SNR_mean - 1.5sd
- threshold separation between power down and power up threshold at least 1db
@Johanl1964

Johanl1964 commented Mar 18, 2026 •

Copy link
Copy Markdown

I like testing new things in ELRS, https://www.facebook.com/profile.php?id=61571315974669 but how do you flash PR FW, creating a Wifi file in Config doesn't work, and I haven't been successful with UART either...

@ot0tot

ot0tot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

I like testing new things in ELRS, https://www.facebook.com/profile.php?id=61571315974669 but how do you flash PR FW, creating a Wifi file in Config doesn't work, and I haven't been successful with UART either...

image

@Johanl1964

Copy link
Copy Markdown

I like testing new things in ELRS, https://www.facebook.com/profile.php?id=61571315974669 but how do you flash PR FW, creating a Wifi file in Config doesn't work, and I haven't been successful with UART either...

image

I know, but it always ends up like this when I try to fix a wifi file
Skärmbild från 2026-03-18 15-12-56

@ot0tot

ot0tot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

I like testing new things in ELRS, https://www.facebook.com/profile.php?id=61571315974669 but how do you flash PR FW, creating a Wifi file in Config doesn't work, and I haven't been successful with UART either...

image

I know, but it always ends up like this when I try to fix a wifi file Skärmbild från 2026-03-18 15-12-56

Works for me. Try clearing platformio dependencies in the support tab:
image

@Johanl1964

Copy link
Copy Markdown

I like testing new things in ELRS, https://www.facebook.com/profile.php?id=61571315974669 but how do you flash PR FW, creating a Wifi file in Config doesn't work, and I haven't been successful with UART either...

image

I know, but it always ends up like this when I try to fix a wifi file Skärmbild från 2026-03-18 15-12-56

Works for me. Try clearing platformio dependencies in the support tab: image

Thanks! Tested, but still doesn't work, but will test on another computer in a while
Skärmbild från 2026-03-18 15-50-48

@mha1

mha1 commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! Tested, but still doesn't work, but will test on another computer in a while

Your PC is telling you why it failed. CLEAR PLATFORMIO DEPENDENCIES couldn't remove the folder /home/johan/.platformio because it is busy or locked. Restart your PC and try again. If it fails again restart your PC and remove folder /home/johan/.platformio and its content manually.

image

@mha1
mha1 marked this pull request as draft March 20, 2026 08:27
@mha1 mha1 changed the title Fix SNR based dynamic power being reluctant to reduce power Reduce dynpower SNR down threshold Mar 25, 2026
@mha1
mha1 marked this pull request as ready for review March 27, 2026 14:34

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

A couple hours of tests ducking into woods trying to trick it, and a errr more distant test lead to

  • Roughly the same performance (<1LQ difference) for a little less power (0.5 of a power level)
  • More frequent lowering of power as expected, the value changed from +1.5 to +0.5 SD
  • More frequent power changes but that's fine, we have no requirement for how often the power should change, so long as it is right!

@pkendall64 pkendall64 added enhancement 🪄 New feature or request V4.1 🍑 labels Mar 29, 2026
@pkendall64
pkendall64 merged commit bfd7401 into ExpressLRS:master Mar 29, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants