From 9a0fb2cab77ea9f37c8258bb6324df617dde817c Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 1 Jan 2016 20:53:11 -0800 Subject: [PATCH] Rename IIR filter for 300Hz high-pass. --- firmware/baseband/dsp_iir_config.hpp | 2 +- firmware/baseband/proc_am_audio.hpp | 2 +- firmware/baseband/proc_nfm_audio.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/baseband/dsp_iir_config.hpp b/firmware/baseband/dsp_iir_config.hpp index ad9b81f9..171a8969 100644 --- a/firmware/baseband/dsp_iir_config.hpp +++ b/firmware/baseband/dsp_iir_config.hpp @@ -25,7 +25,7 @@ #include "dsp_iir.hpp" // scipy.signal.butter(2, 300 / 24000.0, 'highpass', analog=False) -constexpr iir_biquad_config_t audio_hpf_config { +constexpr iir_biquad_config_t audio_hpf_300hz_config { { 0.97261390f, -1.94522780f, 0.97261390f, }, { 1.00000000f, -1.94447766f, 0.94597794f, } }; diff --git a/firmware/baseband/proc_am_audio.hpp b/firmware/baseband/proc_am_audio.hpp index 4779384b..bdceaa51 100644 --- a/firmware/baseband/proc_am_audio.hpp +++ b/firmware/baseband/proc_am_audio.hpp @@ -54,7 +54,7 @@ private: dsp::demodulate::AM demod; - IIRBiquadFilter audio_hpf { audio_hpf_config }; + IIRBiquadFilter audio_hpf { audio_hpf_300hz_config }; SpectrumCollector channel_spectrum; }; diff --git a/firmware/baseband/proc_nfm_audio.hpp b/firmware/baseband/proc_nfm_audio.hpp index 3e1d2205..9ad71fea 100644 --- a/firmware/baseband/proc_nfm_audio.hpp +++ b/firmware/baseband/proc_nfm_audio.hpp @@ -61,7 +61,7 @@ private: dsp::demodulate::FM demod; - IIRBiquadFilter audio_hpf { audio_hpf_config }; + IIRBiquadFilter audio_hpf { audio_hpf_300hz_config }; IIRBiquadFilter audio_deemph { audio_deemph_300_6_config }; FMSquelch squelch;