Revert the CTCSS decoder to floats.

This commit is contained in:
Jonathan Naylor
2020-04-19 21:21:10 +01:00
parent a310bf0547
commit 1aef1a39f2
2 changed files with 74 additions and 98 deletions
+5 -5
View File
@@ -27,16 +27,16 @@ public:
uint8_t setParams(uint8_t frequency, uint8_t threshold);
bool process(const q15_t* samples, uint8_t length);
bool process(q15_t* samples, uint8_t length);
void reset();
private:
q31_t m_coeff;
uint16_t m_threshold;
float32_t m_coeff;
float32_t m_threshold;
uint16_t m_count;
q31_t m_q0;
q31_t m_q1;
float32_t m_q0;
float32_t m_q1;
bool m_result;
};