summaryrefslogtreecommitdiff
path: root/gr-digital/grc
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2020-12-21 16:48:08 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-01-08 08:09:26 -0500
commita4f31600fda2fb315383e2d6ae9ae31e35cef53b (patch)
treea7a869f3c8fa0a5858e0a15d3762bcef148d0cf7 /gr-digital/grc
parent05f09299f3ca1afe5c7965b5407bd23353783067 (diff)
digital: fix bindings and yaml for constellation
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-digital/grc')
-rw-r--r--gr-digital/grc/digital_constellation.block.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-digital/grc/digital_constellation.block.yml b/gr-digital/grc/digital_constellation.block.yml
index 943b578d80..9c4c28c4e7 100644
--- a/gr-digital/grc/digital_constellation.block.yml
+++ b/gr-digital/grc/digital_constellation.block.yml
@@ -31,7 +31,7 @@ parameters:
hide: ${ ( 'none' if str(type) == "calcdist" else 'all') }
- id: normalization
label: Normalization Type
- dtype: int
+ dtype: raw
default: digital.constellation.AMPLITUDE_NORMALIZATION
options: [digital.constellation.NO_NORMALIZATION, digital.constellation.POWER_NORMALIZATION, digital.constellation.AMPLITUDE_NORMALIZATION]
option_labels: [None, Power, Amplitude]
@@ -46,6 +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, normalization) if (str(type) == "calcdist") else getattr(digital,'constellation_'+str(type))() }
@@ -54,7 +55,7 @@ templates:
var_make: |-
% if str(type) == "calcdist":
self.${id} = ${id} = digital.constellation_calcdist(${const_points}, ${sym_map},
- ${rot_sym}, ${dims}).base()
+ ${rot_sym}, ${dims}, ${normalization}).base()
% else:
self.${id} = ${id} = digital.constellation_${type}().base()
% endif