From d93537d12840605e596c76f6c1eda9a9620339b3 Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Mon, 30 May 2011 20:23:32 -0700 Subject: [PATCH] minimodem decode_filter_width = decode_rate This doesn't really seem to help anything. --- src/minimodem.c | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/src/minimodem.c b/src/minimodem.c index 3948eb8..b976f27 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -31,8 +31,23 @@ band_mag( fftwf_complex * const cplx, unsigned int band, float scalar ) { float re = cplx[band][0]; float im = cplx[band][1]; - float mag = hypot(re, im) * scalar; - return mag; + float mag = hypot(re, im); + return mag * scalar; +} + +static inline +float +band_mag_bw( fftwf_complex * const cplx, unsigned int band, unsigned int bw_nbands, float scalar ) +{ + float mag = 0; + unsigned int i; + for ( i=0; i 600 ) // HORRIBLE HACK - cd_ms_delta = 0.55; + cd_ms_delta = 0.3; else - cd_ms_delta = 0.2; + cd_ms_delta = 0.1; /* Detect bfsk carrier */ int carrier_detect /*boolean*/ =