summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <christopher.donohue@gmail.com>2019-10-01 13:54:17 -0400
committerMartin Braun <martin.braun@ettus.com>2020-01-10 22:03:58 -0800
commit687b66c65b26ffdfa66cbafede18dc72ea55bb74 (patch)
tree682ad6d1752fbd79dcc8187afc25499ba5bdc9f8
parent5d87500892d128cbeb10fe52936ddafcccc22770 (diff)
filter: band pass: grc: Validate frequencies and transition width
This adds checks to the GRC bindings to validate that the high frequency is larger than the low frequency, and the width is valid. The low and high frequencies now also receive default values.
-rw-r--r--gr-filter/grc/filter_band_pass_filter.block.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/gr-filter/grc/filter_band_pass_filter.block.yml b/gr-filter/grc/filter_band_pass_filter.block.yml
index a13f97339c..f295b49c58 100644
--- a/gr-filter/grc/filter_band_pass_filter.block.yml
+++ b/gr-filter/grc/filter_band_pass_filter.block.yml
@@ -39,12 +39,15 @@ parameters:
- id: low_cutoff_freq
label: Low Cutoff Freq
dtype: real
+ default: '0'
- id: high_cutoff_freq
label: High Cutoff Freq
dtype: real
+ default: '1'
- id: width
label: Transition Width
dtype: real
+ default: '1'
- id: win
label: Window
dtype: int
@@ -57,6 +60,10 @@ parameters:
dtype: real
default: '6.76'
+asserts:
+- ${ low_cutoff_freq <= high_cutoff_freq }
+- ${ width > 0 }
+
inputs:
- domain: stream
dtype: ${ type.input }