This commit is contained in:
Geoffrey Merck 2020-04-24 09:20:26 +02:00
parent 5c2659deaa
commit 2057ef5206
2 changed files with 3 additions and 14 deletions

8
FM.cpp
View File

@ -20,14 +20,6 @@
#include "Globals.h"
#include "FM.h"
// 3 stage IIR Butterworth filter generated (if you change the order change the size of m_filterState). Also change the ordre in init call below
// 0.2db band pass ripple
// 300 - 2700Hz
q15_t FILTER_COEFFS[] = {362,724,362,16384,-18947,10676,
16384,0,-16384,16384,-25170,9526,
16384,-32768,16384,16384,-32037,15730};
CFM::CFM() :
m_callsign(),
m_rfAck(),

View File

@ -31,8 +31,8 @@ THE SOFTWARE.
#include "Globals.h"
#ifndef DIRECTFORMI_HPP_
#define DIRECTFORMI_HPP_
#ifndef DIRECTFORMI_H_
#define DIRECTFORMI_H_
class CFMDirectFormI
{
public:
@ -65,9 +65,6 @@ public:
c_b2 = my.c_b2; // FIR
c_a1 = my.c_a1;
c_a2 = my.c_a2; // IIR
// scaling factor
q_scaling = my.q_scaling; // 2^q_scaling
}
void reset ()
@ -111,4 +108,4 @@ private:
q31_t c_a1,c_a2; // IIR
};
#endif /* DIRECTFORMI_HPP_ */
#endif /* DIRECTFORMI_H */