mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 20:24:13 -04:00
Rebake of AM, NFM demodulators -- more flexible filtering/configuration.
Also make SpectrumCollector dynamically configurable. Add deemphasis filter to NFM.
This commit is contained in:
parent
df593c2f0f
commit
bbfcca8ec0
8 changed files with 249 additions and 64 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue