From 955578789d7b1c7bb93b83f1a805a668e5ddd44a Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 11 Nov 2020 18:30:49 +0000 Subject: [PATCH] Make the M17 receiver less sensitive to noise. --- M17RX.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/M17RX.cpp b/M17RX.cpp index 246d271..25f097c 100644 --- a/M17RX.cpp +++ b/M17RX.cpp @@ -26,10 +26,10 @@ const q15_t SCALING_FACTOR = 18750; // Q15(0.55) -const uint8_t MAX_SYNC_BIT_START_ERRS = 2U; -const uint8_t MAX_SYNC_BIT_RUN_ERRS = 4U; +const uint8_t MAX_SYNC_BIT_START_ERRS = 1U; +const uint8_t MAX_SYNC_BIT_RUN_ERRS = 3U; -const uint8_t MAX_SYNC_SYMBOLS_ERRS = 3U; +const uint8_t MAX_SYNC_SYMBOLS_ERRS = 2U; const uint8_t BIT_MASK_TABLE[] = {0x80U, 0x40U, 0x20U, 0x10U, 0x08U, 0x04U, 0x02U, 0x01U}; @@ -39,7 +39,7 @@ const uint8_t NOAVEPTR = 99U; const uint16_t NOENDPTR = 9999U; -const unsigned int MAX_SYNC_FRAMES = 1U + 1U; +const unsigned int MAX_SYNC_FRAMES = 3U + 1U; CM17RX::CM17RX() : m_state(M17RXS_NONE),