Support squelch in pocsag (#1415)

* Support squelch in pocsag

* Revert smooth threshold
This commit is contained in:
Kyle Reed 2023-08-27 15:56:40 -07:00 committed by GitHub
parent d8930db8af
commit e7e1bedcad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 100 additions and 78 deletions

View file

@ -106,10 +106,10 @@ class SmoothVals {
// Use a rolling smoothed value while processing the buffer
for (int buffPos = 0; buffPos < numVals; ++buffPos) {
m_pos = (m_pos + 1); // Increment the position in the stored values
m_pos++;
if (m_pos >= m_size) {
m_pos = 0;
} // loop if reached the end of the stored values
}
m_sumVal -= (CalcType)m_lastVals[m_pos]; // Subtract the oldest value
m_lastVals[m_pos] = valBuff[buffPos]; // Store the new value