Merge pull request #363 from n0mjs710/fm-remove-upsample-filter

Remove the ext-audio upsampler filter in FM mode
This commit is contained in:
Jonathan Naylor
2026-11-09 19:45:17 +00:00
committed by GitHub
2 changed files with 0 additions and 11 deletions
-8
View File
@@ -71,9 +71,6 @@ m_filterStage3(32768, -65536, 32768, 32768, -64075, 31460),
m_dsFilterStage1(m_filterStage1),//same coefficients, separate state m_dsFilterStage1(m_filterStage1),//same coefficients, separate state
m_dsFilterStage2(m_filterStage2), m_dsFilterStage2(m_filterStage2),
m_dsFilterStage3(m_filterStage3), m_dsFilterStage3(m_filterStage3),
m_usFilterStage1(m_filterStage1),//same coefficients, separate state
m_usFilterStage2(m_filterStage2),
m_usFilterStage3(m_filterStage3),
m_blanking(), m_blanking(),
m_accessMode(1U), m_accessMode(1U),
m_linkMode(false), m_linkMode(false),
@@ -128,7 +125,6 @@ void CFM::repeaterSamples(bool cos, q15_t* samples, const uint16_t* rssi, uint8_
q15_t currentExtSample; q15_t currentExtSample;
bool inputExt = m_inputExtRB.getSample(currentExtSample);//always consume the external input data so it does not overflow bool inputExt = m_inputExtRB.getSample(currentExtSample);//always consume the external input data so it does not overflow
currentExtSample = m_usFilterStage3.filter(m_usFilterStage2.filter(m_usFilterStage1.filter(currentExtSample)));
inputExt = inputExt && m_extEnabled; inputExt = inputExt && m_extEnabled;
switch (m_accessMode) { switch (m_accessMode) {
@@ -274,7 +270,6 @@ void CFM::linkSamples(bool cos, q15_t* samples, uint8_t length)
// few samples past that point // few samples past that point
q15_t currentExtSample = 0; q15_t currentExtSample = 0;
bool inputExt = m_inputExtRB.getSample(currentExtSample);//always consume the external input data so it does not overflow bool inputExt = m_inputExtRB.getSample(currentExtSample);//always consume the external input data so it does not overflow
currentExtSample = m_usFilterStage3.filter(m_usFilterStage2.filter(m_usFilterStage1.filter(currentExtSample)));
inputExt = inputExt && m_extEnabled; inputExt = inputExt && m_extEnabled;
switch (m_accessMode) { switch (m_accessMode) {
@@ -428,9 +423,6 @@ void CFM::reset()
m_dsFilterStage1.reset(); m_dsFilterStage1.reset();
m_dsFilterStage2.reset(); m_dsFilterStage2.reset();
m_dsFilterStage3.reset(); m_dsFilterStage3.reset();
m_usFilterStage1.reset();
m_usFilterStage2.reset();
m_usFilterStage3.reset();
m_squelch.reset(); m_squelch.reset();
m_needReverse = false; m_needReverse = false;
-3
View File
@@ -83,9 +83,6 @@ private:
CFMDirectFormI m_dsFilterStage1; // anti-alias filter for the downsampler, own state CFMDirectFormI m_dsFilterStage1; // anti-alias filter for the downsampler, own state
CFMDirectFormI m_dsFilterStage2; CFMDirectFormI m_dsFilterStage2;
CFMDirectFormI m_dsFilterStage3; CFMDirectFormI m_dsFilterStage3;
CFMDirectFormI m_usFilterStage1; // reconstruction filter for the upsampler, own state
CFMDirectFormI m_usFilterStage2;
CFMDirectFormI m_usFilterStage3;
CFMBlanking m_blanking; CFMBlanking m_blanking;
uint8_t m_accessMode; uint8_t m_accessMode;
bool m_linkMode; bool m_linkMode;