Remove any DC offset from before any further filtering takes place.

This commit is contained in:
Jonathan Naylor 2017-07-16 18:57:15 +01:00
parent 9d1ebc0f8f
commit 8540964097
9 changed files with 23 additions and 25 deletions

View file

@ -104,7 +104,7 @@ bool CDMRSlotRX::processSample(q15_t sample, uint16_t rssi)
m_rssi[m_dataPtr] = rssi;
m_bitBuffer[m_bitPtr] <<= 1;
if (sample < m_dcLevel)
if (sample < 0)
m_bitBuffer[m_bitPtr] |= 0x01U;
if (m_state == DMRRXS_NONE) {