summaryrefslogtreecommitdiff
path: root/gr-digital/include/digital_constellation.h
diff options
context:
space:
mode:
authorBen Reynwar2012-09-30 17:23:19 -0700
committerBen Reynwar2012-09-30 17:23:19 -0700
commit33d9cf8800d3b4c0bbbff09b7588c21ed35e3220 (patch)
tree8c34108db2e071d1ab9dd7143b97b3c2da725221 /gr-digital/include/digital_constellation.h
parent96f181f29afbae43fa449297a232637fadf426d0 (diff)
downloadgnuradio-33d9cf8800d3b4c0bbbff09b7588c21ed35e3220.tar.gz
gnuradio-33d9cf8800d3b4c0bbbff09b7588c21ed35e3220.tar.bz2
gnuradio-33d9cf8800d3b4c0bbbff09b7588c21ed35e3220.zip
digital: Fixed scaling bug in QAM constellations.
Diffstat (limited to 'gr-digital/include/digital_constellation.h')
-rw-r--r--gr-digital/include/digital_constellation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-digital/include/digital_constellation.h b/gr-digital/include/digital_constellation.h
index a72bfb74c..76cd30b25 100644
--- a/gr-digital/include/digital_constellation.h
+++ b/gr-digital/include/digital_constellation.h
@@ -120,6 +120,9 @@ public:
unsigned int d_rotational_symmetry;
unsigned int d_dimensionality;
unsigned int d_arity;
+ // The orignal constellation points were multiplied by this factor to get a
+ // constellation with average magnitude 1.
+ float d_scalefactor;
float get_distance(unsigned int index, const gr_complex *sample);
unsigned int get_closest_point(const gr_complex *sample);