mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Implement, use configuration for FM demod deviation.
This commit is contained in:
parent
fa275156ed
commit
3a96c04aa7
@ -55,9 +55,13 @@ public:
|
||||
buffer_s16_t dst
|
||||
);
|
||||
|
||||
void configure(const float sampling_rate, const float deviation_hz) {
|
||||
k = static_cast<float>(32767.0f / (2.0 * pi * deviation_hz / sampling_rate));
|
||||
}
|
||||
|
||||
private:
|
||||
complex16_t::rep_type z_;
|
||||
const float k;
|
||||
float k;
|
||||
};
|
||||
|
||||
} /* namespace demodulate */
|
||||
|
@ -492,6 +492,7 @@ public:
|
||||
}
|
||||
|
||||
void configure(const FSKConfiguration new_configuration) {
|
||||
demod.configure(76800, 2 * new_configuration.symbol_rate);
|
||||
clock_recovery.configure(new_configuration.symbol_rate, 76800);
|
||||
access_code_correlator.configure(
|
||||
new_configuration.access_code,
|
||||
|
Loading…
Reference in New Issue
Block a user