Pass IIR configs from application to baseband.

This commit is contained in:
Jared Boone
2016-01-29 15:57:20 -08:00
parent 01e14ecbcf
commit 96898f82b2
5 changed files with 34 additions and 13 deletions

View File

@@ -21,7 +21,6 @@
#include "proc_nfm_audio.hpp"
#include "dsp_iir_config.hpp"
#include "audio_output.hpp"
#include <cstdint>
@@ -87,7 +86,7 @@ void NarrowbandFMAudio::configure(const NBFMConfigureMessage& message) {
channel_filter_pass_f = message.channel_filter.pass_frequency_normalized * channel_filter_input_fs;
channel_filter_stop_f = message.channel_filter.stop_frequency_normalized * channel_filter_input_fs;
channel_spectrum.set_decimation_factor(std::floor((channel_filter_output_fs / 2) / ((channel_filter_pass_f + channel_filter_stop_f) / 2)));
audio_output.configure(audio_16k_hpf_300hz_config, audio_16k_deemph_300_6_config, 0);
audio_output.configure(message.audio_hpf_config, message.audio_deemph_config, 0);
configured = true;
}