summaryrefslogtreecommitdiff
path: root/gr-trellis/src/examples/test_cpm.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-10-25 18:24:36 -0400
committerTom Rondeau <trondeau@vt.edu>2011-10-25 18:24:36 -0400
commitefb131ee516c933e13516287a423764b794e2926 (patch)
tree6ac258fc40ba2b8afc10849022cd7c0c3f9ef7ef /gr-trellis/src/examples/test_cpm.py
parentf16368396d354e3206f75f5282aeea4ad382ab88 (diff)
trellis: fixed the trellis examples to look in gr-digital for the constellation information.
Diffstat (limited to 'gr-trellis/src/examples/test_cpm.py')
-rwxr-xr-xgr-trellis/src/examples/test_cpm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-trellis/src/examples/test_cpm.py b/gr-trellis/src/examples/test_cpm.py
index b5bdaae44f..06d54b1a6f 100755
--- a/gr-trellis/src/examples/test_cpm.py
+++ b/gr-trellis/src/examples/test_cpm.py
@@ -8,7 +8,7 @@
##################################################
from gnuradio import gr
-from gnuradio import trellis
+from gnuradio import trellis, digital
from gnuradio.gr import firdes
from grc_gnuradio import blks2 as grc_blks2
import math
@@ -103,7 +103,8 @@ def run_test(seed,blocksize):
gr_fir_filter_xxx_0_0_0 = gr.fir_filter_ccc(Q, MF[1].conjugate())
gr_streams_to_stream_0 = gr.streams_to_stream(gr.sizeof_gr_complex*1, int(N))
gr_skiphead_0 = gr.skiphead(gr.sizeof_gr_complex*1, int(N*(1+0)))
- viterbi = trellis.viterbi_combined_cb(f, head+blocksize+tail, 0, -1, int(N), constellation, trellis.TRELLIS_EUCLIDEAN)
+ viterbi = trellis.viterbi_combined_cb(f, head+blocksize+tail, 0, -1, int(N),
+ constellation, digital.TRELLIS_EUCLIDEAN)
gr_vector_sink_x_0 = gr.vector_sink_b()