RXPS: use measured preamble-symbol capture model

This commit is contained in:
Jarosław Domański
2026-09-05 00:02:13 +02:00
parent fde20d37d0
commit 6bbd34a296
15 changed files with 1090 additions and 189 deletions
+2 -1
View File
@@ -11,8 +11,9 @@ static RxPowerSavingControl* getRxPowerSavingControl() {
}
static void applyRxPowerSavingConfig(NodePrefs& prefs, uint8_t sf, float bw) {
normalizeRxPowerSavingConfig(&prefs.rxps, sf, bw);
RxPowerSavingControl* control = getRxPowerSavingControl();
normalizeRxPowerSavingConfig(&prefs.rxps, sf, bw, rxPowerSavingCaptureCost(control),
rxPowerSavingTransition(control));
bool ok = control != nullptr
? control->setRxPowerSaving(
prefs.rxps.enabled != 0, prefs.rxps.rx_us, prefs.rxps.sleep_us)