Adding DC estimator filter for all modes

This commit is contained in:
Andy CA6JAU 2017-07-06 00:51:46 -04:00
parent 6c4496e034
commit f8d767913e
11 changed files with 42 additions and 34 deletions

View file

@ -88,7 +88,7 @@ bool CDMRDMORX::processSample(q15_t sample, uint16_t rssi)
m_rssi[m_dataPtr] = rssi;
m_bitBuffer[m_bitPtr] <<= 1;
if (sample < 0)
if (sample < m_dc_level)
m_bitBuffer[m_bitPtr] |= 0x01U;
if (m_state == DMORXS_NONE) {