Use fixed point for the Goertzel algorithm.

This commit is contained in:
Jonathan Naylor 2020-04-22 17:40:01 +01:00
parent 57730d7f81
commit 526a53cd8c
2 changed files with 96 additions and 71 deletions

View file

@ -62,11 +62,11 @@ public:
void reset();
private:
float32_t m_coeff;
float32_t m_threshold;
uint16_t m_count;
float32_t m_q0;
float32_t m_q1;
q31_t m_coeffDivTwo;
q31_t m_threshold;
uint16_t m_count;
q31_t m_q0;
q31_t m_q1;
CTCSSState m_result;
};