From 80fc54619e7217f1541ec4385f3569e0b66e588d Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 3 Nov 2024 09:32:19 +0100 Subject: [PATCH] autogain: change default noise thresholds --- README.md | 2 +- readsb.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b9fa151f..3b121c58 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ To tweak the internals, more parameters can be passed: ``` The defaults are: ``` ---gain=auto-verbose,43.9,25,35,245 +--gain=auto-verbose,43.9,24,28,245 ``` The thresholds are numbers 0 to 256, tweaking them requires some understanding of how it works. One option would be to change the noise thresholds up or down and then observe the log. diff --git a/readsb.c b/readsb.c index ede2e6e5..965221b4 100644 --- a/readsb.c +++ b/readsb.c @@ -121,8 +121,8 @@ static void configSetDefaults(void) { // 8 bit autogain defaults, will be squared and compared against magnitude data Modes.loudThreshold = 245; - Modes.noiseLowThreshold = 25; - Modes.noiseHighThreshold = 35; + Modes.noiseLowThreshold = 24; + Modes.noiseHighThreshold = 28; Modes.freq = MODES_DEFAULT_FREQ; Modes.check_crc = 1;