summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorMarc L <marcll@vt.edu>2018-10-17 02:07:22 -0400
committerMartin Braun <martin.braun@ettus.com>2018-10-23 11:49:31 -0700
commit52a24f67f13febdfc391662cb76c3b07f37df1cc (patch)
tree04b06203875baadbdbfc0268c8d656c2717efd3a /gr-uhd
parentae1b2448c359f17a2fca233f3dfa38fb8a276b05 (diff)
uhd: Fix bugs in usrp yaml
Diffstat (limited to 'gr-uhd')
-rw-r--r--gr-uhd/grc/gen_uhd_usrp_blocks.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py
index 29cef38807..a969ab95d1 100644
--- a/gr-uhd/grc/gen_uhd_usrp_blocks.py
+++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py
@@ -68,15 +68,15 @@ parameters:
- id: clock_rate
label: Clock Rate (Hz)
dtype: real
- default: '0.0'
- options: ['0.0', 200e6, 184.32e6, 120e6, 30.72e6]
+ default: 0e0
+ options: [0e0, 200e6, 184.32e6, 120e6, 30.72e6]
option_labels: [Default, 200 MHz, 184.32 MHz, 120 MHz, 30.72 MHz]
hide: ${'$'}{ 'none' if clock_rate else 'part' }
- id: num_mboards
label: Num Mboards
dtype: int
- default: '1'
- options: ['1', '2', '3', '4', '5', '6', '7', '8']
+ default: 1
+ options: [1, 2, 3, 4, 5, 6, 7, 8]
hide: part
% for m in range(max_mboards):
- id: clock_source${m}
@@ -105,6 +105,7 @@ parameters:
- id: samp_rate
label: Samp rate (Sps)
dtype: real
+ default: samp_rate
${params}
inputs:
@@ -147,7 +148,7 @@ templates:
${'$'}{len_tag_name},
${'%'} endif
)
- ${'%'} if clock_rate:
+ ${'%'} if clock_rate():
self.${'$'}{id}.set_clock_rate(${'$'}{clock_rate}, uhd.ALL_MBOARDS)
${'%'} endif
self.${'$'}{id}.set_samp_rate(${'$'}{samp_rate})
@@ -263,7 +264,7 @@ PARAMS_TMPL = """
- id: norm_gain${n}
label: 'Ch${n}: Gain Type'
category: RF Options
- dtype: enum
+ dtype: string
default: 'False'
options: ['False', 'True']
option_labels: [Absolute (dB), Normalized]
@@ -275,6 +276,7 @@ PARAMS_TMPL = """
% if sourk == 'source':
options: [TX/RX, RX2, RX1]
option_labels: [TX/RX, RX2, RX1]
+ default: RX2
% else:
options: [TX/RX]
option_labels: [TX/RX]