Attemp to do filtering

This commit is contained in:
Geoffrey Merck 2020-04-21 23:03:30 +02:00
parent ae6cbcd9e7
commit 1b0229ca6c
1 changed files with 4 additions and 1 deletions

5
FM.cpp
View File

@ -70,7 +70,7 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
q15_t currentSample;
for(uint8_t i = 0U; i < length; i++) {
currentSample = samples[i];//save to a local variable to avoid indirection on every access
// Only let audio through when relaying audio
if (m_state != FS_RELAYING && m_state != FS_KERCHUNK) {
currentSample = 0U;
@ -85,6 +85,9 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
if (!m_callsign.isRunning() && !m_rfAck.isRunning())
currentSample += m_timeoutTone.getAudio();
//ToDo Filtering
//::arm_fir_fast_q15(&m_filter, samples + i, &currentSample, 1);
currentSample += m_ctcssTX.getAudio();
samples[i] = currentSample;