From 1b5d0a34263e6b3857df506e6ddb91a0ac9bc6fa Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 21 Apr 2016 11:17:20 +0100 Subject: [PATCH] Change M to improve the decoding. --- YSFConvolution.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/YSFConvolution.cpp b/YSFConvolution.cpp index a8afa0b..23b117e 100644 --- a/YSFConvolution.cpp +++ b/YSFConvolution.cpp @@ -30,6 +30,11 @@ const unsigned char BIT_MASK_TABLE[] = {0x80U, 0x40U, 0x20U, 0x10U, 0x08U, 0x04U const uint8_t BRANCH_TABLE1[] = {0U, 0U, 0U, 0U, 1U, 1U, 1U, 1U}; const uint8_t BRANCH_TABLE2[] = {0U, 1U, 1U, 0U, 0U, 1U, 1U, 0U}; +const unsigned int NUM_OF_STATES_D2 = 8U; +const unsigned int NUM_OF_STATES = 16U; +const uint32_t M = 2U; +const unsigned int K = 5U; + CYSFConvolution::CYSFConvolution() : m_metrics1(NULL), m_metrics2(NULL), @@ -50,11 +55,6 @@ CYSFConvolution::~CYSFConvolution() delete[] m_decisions; } -const unsigned int NUM_OF_STATES_D2 = 8U; -const unsigned int NUM_OF_STATES = 16U; -const uint32_t M = 3U; -const unsigned int K = 5U; - void CYSFConvolution::start() { ::memset(m_metrics1, 0x00U, NUM_OF_STATES * sizeof(uint16_t));