From fec064c1a246172f669913e05fca9f7899aff092 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Tue, 27 May 2025 22:48:28 +1000 Subject: [PATCH] * companion: interference threshold default (14) --- examples/companion_radio/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index 3dadb88d..30a1c9cc 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -490,6 +490,10 @@ protected: return _prefs.airtime_factor; } + int getInterferenceThreshold() const override { + return 14; // hard-coded for now + } + int calcRxDelay(float score, uint32_t air_time) const override { if (_prefs.rx_delay_base <= 0.0f) return 0; return (int) ((pow(_prefs.rx_delay_base, 0.85f - score) - 1.0) * air_time);