Rebake of AM, NFM demodulators -- more flexible filtering/configuration.

Also make SpectrumCollector dynamically configurable.
Add deemphasis filter to NFM.
This commit is contained in:
Jared Boone 2015-12-29 10:58:53 -08:00
parent df593c2f0f
commit bbfcca8ec0
8 changed files with 249 additions and 64 deletions

View file

@ -33,11 +33,12 @@
class SpectrumCollector {
public:
constexpr SpectrumCollector(
const size_t decimation_factor = 4
) : channel_spectrum_decimator { decimation_factor }
) : channel_spectrum_decimator { 1 }
{
}
void set_decimation_factor(const size_t decimation_factor);
void feed(
const buffer_c16_t& channel,
const uint32_t filter_pass_frequency,