I tried building this program on Windows and failed. Since it's
missing in viterbi/CmakeLists.txt, I fail to see it's built by
default. How did you compile it? Are you sure it wasn't written
on a big-endian machine?
under GNU/Linux
g++ -c encode.cc
gcc -c viterbi.c
gcc -c tab.c
gcc -c metrics.c
Jean-Michel FRIEDT wrote:
I am currently investigating LRPT (as used by METEOR-M2) and am
stuck with the Viterbi decoder. While trying to use
https://github.com/gnuradio/gnuradio/blob/master/gr-fec/lib/viterbi/decode.cc
which implements
I tried building this program on Windows and failed. Sinc
#define POLYA 0x6d
#define POLYB 0x4f
If I modify viterbi.c in gr-fec/viterbi (swapping the polynomial coefficients)
#define POLYB 0x6d
#define POLYA 0x4f
then
$ xxd word.bin
: 1acf fc1d
and
$ cat word.bin | ./encode > t
then t is
0011
I am currently investigating LRPT (as used by METEOR-M2) and am
stuck with the Viterbi decoder. While trying to use
https://github.com/gnuradio/gnuradio/blob/master/gr-fec/lib/viterbi/decode.cc
which implements
/* The two generator polynomials for the NASA Standard K=7 code.
* Since these polyno