POCSAG Processor Rewrite (#1437)

* WIP Refactoring
* WordExtractor building
* Fix buffer sizes and squelch execute
* Move impls to cpp file
* Baud indicator
* WIP new bit extractor
* New approach for bit extraction.
* Code fit and finish
* Fix case on button
* Cleanup
* Adjust rate miss threshold
* Fix count bits error calculation.
This commit is contained in:
Kyle Reed
2023-09-08 10:41:09 -07:00
committed by GitHub
parent 9525738118
commit 31e8019642
13 changed files with 648 additions and 534 deletions

View File

@@ -144,7 +144,7 @@ void POCSAGProcessor::configure() {
}
void POCSAGProcessor::send_stats() const {
POCSAGStatsMessage message(m_fifo.codeword, m_numCode, m_gotSync);
POCSAGStatsMessage message(m_fifo.codeword, m_numCode, m_gotSync, getRate());
shared_memory.application_queue.push(message);
}
@@ -522,7 +522,7 @@ int POCSAGProcessor::getNoOfBits() {
// ====================================================================
//
// ====================================================================
uint32_t POCSAGProcessor::getRate() {
uint32_t POCSAGProcessor::getRate() const {
return ((m_samplesPerSec << 10) + 512) / m_lastStableSymbolLen_1024;
}