From d53109a88522d243bf684ffe1a9aad2801c52f07 Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Wed, 12 Oct 2011 22:42:55 -0400 Subject: digital: OFDM using new psk and qam modules for constellations. Also, psk2->psk updated in all files and examples. --- gr-digital/python/qam.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gr-digital/python/qam.py') diff --git a/gr-digital/python/qam.py b/gr-digital/python/qam.py index a5a2e6c2cf..2a7e51495b 100644 --- a/gr-digital/python/qam.py +++ b/gr-digital/python/qam.py @@ -30,6 +30,7 @@ from generic_mod_demod import generic_mod, generic_demod from utils.gray_code import gray_code from utils import mod_codes import modulation_utils2 +import digital_swig # Default number of points in constellation. _def_constellation_points = 16 @@ -164,7 +165,8 @@ def qam_constellation(constellation_points=_def_constellation_points, # No pre-diff code # Should add one so that we can gray-code the quadrant bits too. pre_diff_code = [] - constellation = gr.constellation_rect(points, pre_diff_code, 4, side, side, width, width) + constellation = digital_swig.constellation_rect(points, pre_diff_code, 4, + side, side, width, width) return constellation # ///////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3