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
+1 -1
View File
@@ -95,7 +95,7 @@ void CP25RX::samples(const q15_t* samples, uint16_t* rssi, uint8_t length)
m_rssiCount++;
m_bitBuffer[m_bitPtr] <<= 1;
if (sample < m_dcLevel)
if (sample < 0)
m_bitBuffer[m_bitPtr] |= 0x01U;
m_buffer[m_dataPtr] = sample;