summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py
diff options
context:
space:
mode:
authoranastas2007-02-13 05:26:07 +0000
committeranastas2007-02-13 05:26:07 +0000
commitd1e790baef141358b6a594b375e3b553f2d995eb (patch)
tree43a8dbddfc15d3f78abbd55c8f047d6ee2d665bb /gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py
parent30c2e70fad2fc3fe75cbf9b2cb60399771fd2ba3 (diff)
downloadgnuradio-d1e790baef141358b6a594b375e3b553f2d995eb.tar.gz
gnuradio-d1e790baef141358b6a594b375e3b553f2d995eb.tar.bz2
gnuradio-d1e790baef141358b6a594b375e3b553f2d995eb.zip
update examples to reflect latest changes in gr-trellis
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4470 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py')
-rwxr-xr-xgnuradio-examples/python/channel-coding/test_viterbi_equalization1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py b/gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py
index 8e197cae9..002d41a76 100755
--- a/gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py
+++ b/gnuradio-examples/python/channel-coding/test_viterbi_equalization1.py
@@ -34,7 +34,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
skip = gr.skiphead(gr.sizeof_float, L) # skip the first L samples since you know they are coming from the L zero symbols
#metrics = trellis.metrics_f(f.O(),dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
#va = trellis.viterbi_s(f,K+L,-1,0) # Put -1 if the Initial/Final states are not set.
- va = trellis.viterbi_combined_s(f,K+L,0,0,dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # using viterbi_combined_s instead of metrics_f/viterbi_s allows larger packet lengths because metrics_f is complaining for not being able to allocate large buffers. This is due to the large f.O() in this application...
+ va = trellis.viterbi_combined_fs(f,K+L,0,0,dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # using viterbi_combined_fs instead of metrics_f/viterbi_s allows larger packet lengths because metrics_f is complaining for not being able to allocate large buffers. This is due to the large f.O() in this application...
dst = gr.vector_sink_s()
fg.connect (src,mod)