summaryrefslogtreecommitdiff
path: root/gr-digital/grc
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <esm@eduardosm.net>2020-12-18 12:30:26 +0100
committerMarcus Müller <marcus@hostalia.de>2020-12-18 13:54:10 +0100
commit947800c52f2fcb2b149cfd2809148afcfdb8b79a (patch)
treeffc11b527f2f95606da621185a8e4c8c5d048ff7 /gr-digital/grc
parent00fd051dff4a73081c40f4ccfc3b4ac8c62d74f1 (diff)
Allow to choose whether to normalize constellation average magnitude, average power or to not normalize at all.
Signed-off-by: Eduardo Sánchez Muñoz <esm@eduardosm.net>
Diffstat (limited to 'gr-digital/grc')
-rw-r--r--gr-digital/grc/digital_constellation.block.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/gr-digital/grc/digital_constellation.block.yml b/gr-digital/grc/digital_constellation.block.yml
index 7a1f4654c0..943b578d80 100644
--- a/gr-digital/grc/digital_constellation.block.yml
+++ b/gr-digital/grc/digital_constellation.block.yml
@@ -29,6 +29,13 @@ parameters:
dtype: int
default: '1'
hide: ${ ( 'none' if str(type) == "calcdist" else 'all') }
+- id: normalization
+ label: Normalization Type
+ dtype: int
+ default: digital.constellation.AMPLITUDE_NORMALIZATION
+ options: [digital.constellation.NO_NORMALIZATION, digital.constellation.POWER_NORMALIZATION, digital.constellation.AMPLITUDE_NORMALIZATION]
+ option_labels: [None, Power, Amplitude]
+ hide: ${ ( 'none' if str(type) == "calcdist" else 'all') }
- id: precision
label: Soft Decisions Precision
dtype: int
@@ -39,7 +46,7 @@ parameters:
dtype: raw
default: None
hide: ${ ('part' if str(soft_dec_lut) == 'None' else 'none') }
-value: ${ digital.constellation_calcdist(const_points, sym_map, rot_sym, dims) if (str(type) == "calcdist") else getattr(digital,'constellation_'+str(type))() }
+value: ${ digital.constellation_calcdist(const_points, sym_map, rot_sym, dims, normalization) if (str(type) == "calcdist") else getattr(digital,'constellation_'+str(type))() }
templates: