summaryrefslogtreecommitdiff
path: root/gr-channels/grc/channels_cfo_model.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-channels/grc/channels_cfo_model.block.yml')
-rw-r--r--gr-channels/grc/channels_cfo_model.block.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/gr-channels/grc/channels_cfo_model.block.yml b/gr-channels/grc/channels_cfo_model.block.yml
new file mode 100644
index 0000000000..daa4eb7032
--- /dev/null
+++ b/gr-channels/grc/channels_cfo_model.block.yml
@@ -0,0 +1,44 @@
+id: channels_cfo_model
+label: CFO Model
+
+parameters:
+- id: srate
+ label: Sample Rate Hz
+ dtype: real
+ default: samp_rate
+- id: stdev
+ label: CFO Standard Deviation Hz per sample
+ dtype: real
+ default: '0.01'
+- id: maxdev
+ label: Max CFO Bound Hz
+ dtype: real
+ default: 1e3
+- id: seed
+ label: Seed
+ dtype: int
+ default: '0'
+
+inputs:
+- domain: stream
+ dtype: complex
+
+outputs:
+- domain: stream
+ dtype: complex
+
+templates:
+ imports: from gnuradio import channels
+ make: |-
+ channels.cfo_model(
+ ${srate},
+ ${stdev},
+ ${maxdev},
+ ${seed}
+ )
+ callbacks:
+ - set_std_dev(${stdev})
+ - set_max_dev(${maxdev})
+ - set_samp_rate(${srate})
+
+file_format: 1