diff options
author | Tom Rondeau | 2011-08-10 22:37:51 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-08-10 22:37:51 -0400 |
commit | 57860e0199c005f26b4942cc7ed5e5acf829a68b (patch) | |
tree | e13821d931b074d17fa43dc3da257ac50a9813bd /gr-digital/python/qam.py | |
parent | 612be3956603941f6cf530c090eba02d26d33bcd (diff) | |
download | gnuradio-57860e0199c005f26b4942cc7ed5e5acf829a68b.tar.gz gnuradio-57860e0199c005f26b4942cc7ed5e5acf829a68b.tar.bz2 gnuradio-57860e0199c005f26b4942cc7ed5e5acf829a68b.zip |
Cleaning up; adding a different dbpsk that uses differential coding. The normal bpsk is non-differential by default, but can be set to use differential with the right flag.
Diffstat (limited to 'gr-digital/python/qam.py')
-rw-r--r-- | gr-digital/python/qam.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-digital/python/qam.py b/gr-digital/python/qam.py index f29291ce8..a5a2e6c2c 100644 --- a/gr-digital/python/qam.py +++ b/gr-digital/python/qam.py @@ -113,7 +113,7 @@ def make_differential_constellation(m, gray_coded): return const_map -def make_not_differential_constellation(m, gray_coded): +def make_non_differential_constellation(m, gray_coded): side = int(pow(m, 0.5)) if (not isinstance(m, int) or m < 4 or not is_power_of_four(m)): raise ValueError("m must be a power of 4 integer.") @@ -158,7 +158,7 @@ def qam_constellation(constellation_points=_def_constellation_points, if differential: points = make_differential_constellation(constellation_points, gray_coded) else: - points = make_not_differential_constellation(constellation_points, gray_coded) + points = make_non_differential_constellation(constellation_points, gray_coded) side = int(sqrt(constellation_points)) width = 2.0/(side-1) # No pre-diff code |