diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-25 06:51:36 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-25 06:51:36 -0700 |
commit | 09761fe0f6ed40ff74317fbb47d6a74068fb4ce4 (patch) | |
tree | 294de35ab62833f4f24bef66ca99c9736c017570 /src/test/ao_fec_test.c | |
parent | 628076aa90e7bc9a894646e417dd8e1fe149b60d (diff) |
altos: Incremental viterbi decode
Decode radio input one interleave block at a time. This overlaps the
decode computation with the packet reception, leading to lower latency
in an attempt to keep up with the transmitter.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/ao_fec_test.c')
-rw-r--r-- | src/test/ao_fec_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ao_fec_test.c b/src/test/ao_fec_test.c index 98067486..e8d3d8b1 100644 --- a/src/test/ao_fec_test.c +++ b/src/test/ao_fec_test.c @@ -266,7 +266,7 @@ ao_real_packet(void) int off; for (off = 0; off < sizeof (real_packet) - 576; off++) { - decode_len = ao_fec_decode(real_packet+off, 576, decode); + decode_len = ao_fec_decode(real_packet+off, 576, decode, 34, NULL); if (ao_fec_check_crc(decode, 32)) { printf ("match at %d\n", off); @@ -317,7 +317,7 @@ main(int argc, char **argv) receive_len = transmit_len; /* Decode it */ - decode_len = ao_fec_decode(receive, receive_len, decode); + decode_len = ao_fec_decode(receive, receive_len, decode, original_len + 2, NULL); /* Check to see if we received the right data */ error = 0; |