From 659a64436291bed3b59ce343cfb07052b34170bc Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 8 Jan 2015 16:11:29 +0100 Subject: [PATCH] give the raw sample to the analyzer --- app/src/main/rs/decoder.rs | 2 +- app/src/main/rs/stft.rsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/rs/decoder.rs b/app/src/main/rs/decoder.rs index 48b1f3f..77b8593 100644 --- a/app/src/main/rs/decoder.rs +++ b/app/src/main/rs/decoder.rs @@ -217,7 +217,7 @@ void decode(int samples) { continue; float norm_amp = amp / avg_amp; - spectrum_analyzer(norm_amp); + spectrum_analyzer(amp); complex_t cnt_baseband = convert(&cnt_ddc, norm_amp); complex_t dat_baseband = convert(&dat_ddc, norm_amp); diff --git a/app/src/main/rs/stft.rsh b/app/src/main/rs/stft.rsh index 2c17ce3..831f12d 100644 --- a/app/src/main/rs/stft.rsh +++ b/app/src/main/rs/stft.rsh @@ -40,7 +40,7 @@ static void freq_marker(int freq) } } -static void spectrum_analyzer(float amplitude) +static void spectrum_analyzer(int amplitude) { const int M = 7; static int n;