From 7ec1a1f85bd5313944b83d2f0fef1a77db5d7066 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 28 Dec 2015 16:24:43 -0800 Subject: [PATCH] Move comment about FM squelch IIR filter. --- firmware/baseband/dsp_iir_config.hpp | 1 + firmware/baseband/dsp_squelch.hpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/baseband/dsp_iir_config.hpp b/firmware/baseband/dsp_iir_config.hpp index 961900c14..d238c6d23 100644 --- a/firmware/baseband/dsp_iir_config.hpp +++ b/firmware/baseband/dsp_iir_config.hpp @@ -30,6 +30,7 @@ constexpr iir_biquad_config_t audio_hpf_config { { 1.00000000f, -1.94447766f, 0.94597794f, } }; +// scipy.signal.iirdesign(wp=8000 / 24000.0, ws= 4000 / 24000.0, gpass=1, gstop=18, ftype='ellip') constexpr iir_biquad_config_t non_audio_hpf_config { { 0.51891061f, -0.95714180f, 0.51891061f }, { 1.0f , -0.79878302f, 0.43960231f } diff --git a/firmware/baseband/dsp_squelch.hpp b/firmware/baseband/dsp_squelch.hpp index 06cb2cdd7..37cf68a30 100644 --- a/firmware/baseband/dsp_squelch.hpp +++ b/firmware/baseband/dsp_squelch.hpp @@ -37,8 +37,6 @@ private: static constexpr size_t N = 32; static constexpr int16_t threshold = 3072; - // nyquist = 48000 / 2.0 - // scipy.signal.iirdesign(wp=8000 / nyquist, ws= 4000 / nyquist, gpass=1, gstop=18, ftype='ellip') IIRBiquadFilter non_audio_hpf { non_audio_hpf_config }; };