Default constructors and configure methods for baseband classes.

This commit is contained in:
Jared Boone 2015-11-05 10:19:05 -08:00
parent 5236a858d0
commit ddd34793a6
10 changed files with 65 additions and 77 deletions

View file

@ -33,12 +33,17 @@
class NarrowbandAMAudio : public BasebandProcessor {
public:
NarrowbandAMAudio() {
decimator.set_decimation_factor(ChannelDecimator::DecimationFactor::By32);
channel_filter.configure(channel_filter_taps.taps, 2);
}
void execute(buffer_c8_t buffer) override;
private:
ChannelDecimator decimator { ChannelDecimator::DecimationFactor::By32 };
ChannelDecimator decimator;
const fir_taps_real<64>& channel_filter_taps = taps_64_lp_031_070_tfilter;
dsp::decimate::FIRAndDecimateComplex channel_filter { channel_filter_taps.taps, 2 };
dsp::decimate::FIRAndDecimateComplex channel_filter;
dsp::demodulate::AM demod;
IIRBiquadFilter audio_hpf { audio_hpf_config };
};