From 8b310c184bca6bac09adf08f227347899b60bdd5 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Fri, 27 Mar 2026 00:01:10 +0100 Subject: [PATCH] [fix](trx-backend-soapysdr): lower pilot lock threshold for weak-signal RDS Lower PILOT_LOCK_THRESHOLD 0.5 -> 0.25 so the accurate 57 kHz pilot-derived carrier reference is handed to the RDS decoder even with a weaker pilot tone. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Stan Grams --- .../trx-backend/trx-backend-soapysdr/src/demod/wfm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod/wfm.rs b/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod/wfm.rs index cc63f59..60d637c 100644 --- a/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod/wfm.rs +++ b/src/trx-server/trx-backend/trx-backend-soapysdr/src/demod/wfm.rs @@ -10,7 +10,7 @@ use super::{math::demod_fm_with_prev, DcBlocker}; const RDS_SUBCARRIER_HZ: f32 = 57_000.0; /// Tech 2: pilot lock level above which the ×3 pilot reference is used. -const PILOT_LOCK_THRESHOLD: f32 = 0.5; +const PILOT_LOCK_THRESHOLD: f32 = 0.25; /// Tech 9: number of complex CMA equalizer taps. const CMA_N_TAPS: usize = 8; /// Tech 9: CMA LMS step size.