Changing metric calculation for Viterbi decoder NXDN

This commit is contained in:
juribeparada
2018-02-01 11:56:18 -03:00
parent 0f9f24310a
commit 885562539e
4 changed files with 10 additions and 19 deletions

View File

@@ -110,12 +110,12 @@ bool CNXDNUDCH::decode(const unsigned char* data)
unsigned int index = 0U;
for (unsigned int i = 0U; i < NXDN_FACCH2_LENGTH_BITS; i++) {
if (n == PUNCTURE_LIST[index]) {
temp2[n++] = 99U;
temp2[n++] = 1U;
index++;
}
bool b = READ_BIT1(temp1, i);
temp2[n++] = b ? 1U : 0U;
temp2[n++] = b ? 2U : 0U;
}
CNXDNConvolution conv;