mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 19:46:45 -04:00
Implement, use configuration for FM demod deviation.
This commit is contained in:
parent
fa275156ed
commit
3a96c04aa7
2 changed files with 6 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue