Use a shorter filter.

This commit is contained in:
Jonathan Naylor 2020-04-22 14:15:07 +01:00
parent 3f1f1d1586
commit f936bc6fe8
1 changed files with 5 additions and 8 deletions

13
FM.cpp
View File

@ -21,15 +21,12 @@
#include "FM.h"
q15_t FILTER_COEFFS[] = {
26, 19, 6, -7, -13, -7, 8, 27, 35, 22, -10, -48, -70, -60, -21, 24,
41, 3, -84, -185, -243, -222, -129, -23, 15, -66, -257, -471, -591, -539, -332, -94,
9, -134, -503, -926, -1160, -1035, -570, -5, 300, 64, -728, -1747, -2418, -2171, -732, 1688,
4417, 6564, 7376, 6564, 4417, 1688, -732, -2171, -2418, -1747, -728, 64, 300, -5, -570, -1035,
-1160, -926, -503, -134, 9, -94, -332, -539, -591, -471, -257, -66, 15, -23, -129, -222,
-243, -185, -84, 3, 41, 24, -21, -60, -70, -48, -10, 22, 35, 27, 8, -7,
-13, -7, 6, 19, 26};
-630, -842, -846, -634, -312, -53, -14, -251, -683, -1113, -1322, -1179, -718, -147, 234, 172,
-399, -1298, -2124, -2402, -1783, -201, 2051, 4399, 6169, 6827, 6169, 4399, 2051, -201, -1783, -2402,
-2124, -1298, -399, 172, 234, -147, -718, -1179, -1322, -1113, -683, -251, -14, -53, -312, -634,
-846, -842, -630};
const uint16_t FILTER_COEFFS_LEN = 101U;
const uint16_t FILTER_COEFFS_LEN = 51U;
CFM::CFM() :