MFSK soft decode

* Corrected viterbi puncture value to 128
    which represents neither a 0 nor a 1
pull/1/head
David Freese 2011-10-10 06:48:57 -05:00
rodzic ee1747d354
commit 5c0da523e6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -517,7 +517,7 @@ void mfsk::softdecode(complex *bins)
// shift to range 0...255
for (i = 0; i < symbits; i++)
if (staticburst)
symbols[i] = 0; // puncturing
symbols[i] = 128; // puncturing 128 is neither 0 nor a 1
else
symbols[i] = (unsigned char)clamp(128.0 + (b[i] / sum * 128.0), 0, 255);