Adding tail bits to improve Viterbi decoding + puncture lists fix

This commit is contained in:
juribeparada
2018-02-01 16:05:36 -03:00
parent 885562539e
commit d4fbc8f7ec
3 changed files with 28 additions and 14 deletions

View File

@@ -77,7 +77,7 @@ bool CNXDNSACCH::decode(const unsigned char* data)
// CUtils::dump("NXDN, SACCH de-interleaved", temp1, 8U);
uint8_t temp2[72U];
uint8_t temp2[90U];
unsigned int n = 0U;
unsigned int index = 0U;
@@ -91,18 +91,22 @@ bool CNXDNSACCH::decode(const unsigned char* data)
temp2[n++] = b ? 2U : 0U;
}
for (unsigned int i = 0U; i < 8U; i++) {
temp2[n++] = 0U;
}
CNXDNConvolution conv;
conv.start();
n = 0U;
for (unsigned int i = 0U; i < 36U; i++) {
for (unsigned int i = 0U; i < 40U; i++) {
uint8_t s0 = temp2[n++];
uint8_t s1 = temp2[n++];
conv.decode(s0, s1);
}
conv.chainback(m_data, 32U);
conv.chainback(m_data, 36U);
CUtils::dump("NXDN, SACCH decoded", m_data, 4U);