diff options
author | Tom Rondeau | 2012-06-19 22:22:06 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-06-19 22:22:06 -0400 |
commit | d8d8e992e3f94792fefa74c61d32494903f77dfb (patch) | |
tree | e164a9c2c30712dd2ccc39d17ce2ac2f6b3ae23a /gr-filter/grc | |
parent | 8a0ead8481c2418560dd98d8bb64c82842a76bcc (diff) | |
download | gnuradio-d8d8e992e3f94792fefa74c61d32494903f77dfb.tar.gz gnuradio-d8d8e992e3f94792fefa74c61d32494903f77dfb.tar.bz2 gnuradio-d8d8e992e3f94792fefa74c61d32494903f77dfb.zip |
filter: added channel_model block with GRC.
Dummy QA test needs work.
More documentation.
Diffstat (limited to 'gr-filter/grc')
-rw-r--r-- | gr-filter/grc/CMakeLists.txt | 1 | ||||
-rw-r--r-- | gr-filter/grc/channel_model.xml | 61 | ||||
-rw-r--r-- | gr-filter/grc/filter_block_tree.xml | 1 |
3 files changed, 63 insertions, 0 deletions
diff --git a/gr-filter/grc/CMakeLists.txt b/gr-filter/grc/CMakeLists.txt index 8bbb4c9e0..2e3fef4f0 100644 --- a/gr-filter/grc/CMakeLists.txt +++ b/gr-filter/grc/CMakeLists.txt @@ -35,6 +35,7 @@ install(FILES pfb_synthesizer.xml rational_resampler_base_xxx.xml single_pole_iir_filter_xx.xml + channel_model.xml DESTINATION ${GRC_BLOCKS_DIR} COMPONENT "filter_python" ) diff --git a/gr-filter/grc/channel_model.xml b/gr-filter/grc/channel_model.xml new file mode 100644 index 000000000..6d780974a --- /dev/null +++ b/gr-filter/grc/channel_model.xml @@ -0,0 +1,61 @@ +<?xml version="1.0"?> +<!-- +################################################### +##Channel Model +################################################### + --> +<block> + <name>Channel Model</name> + <key>channel_model</key> + <import>from gnuradio import filter</import> + <import>from gnuradio.filter import firdes</import> + <make>filter.channel_model( + noise_voltage=$noise_voltage, + frequency_offset=$freq_offset, + epsilon=$epsilon, + taps=$taps, + noise_seed=$seed, +)</make> + <callback>set_noise_voltage($noise_voltage)</callback> + <callback>set_frequency_offset($freq_offset)</callback> + <callback>set_taps($taps)</callback> + <callback>set_timing_offset($epsilon)</callback> + <param> + <name>Noise Voltage</name> + <key>noise_voltage</key> + <value>0.0</value> + <type>real</type> + </param> + <param> + <name>Frequency Offset</name> + <key>freq_offset</key> + <value>0.0</value> + <type>real</type> + </param> + <param> + <name>Epsilon</name> + <key>epsilon</key> + <value>1.0</value> + <type>real</type> + </param> + <param> + <name>Taps</name> + <key>taps</key> + <value>1.0 + 1.0j</value> + <type>complex_vector</type> + </param> + <param> + <name>Seed</name> + <key>seed</key> + <value>0</value> + <type>int</type> + </param> + <sink> + <name>in</name> + <type>complex</type> + </sink> + <source> + <name>out</name> + <type>complex</type> + </source> +</block> diff --git a/gr-filter/grc/filter_block_tree.xml b/gr-filter/grc/filter_block_tree.xml index b16966eae..711ce4059 100644 --- a/gr-filter/grc/filter_block_tree.xml +++ b/gr-filter/grc/filter_block_tree.xml @@ -46,5 +46,6 @@ <block>pfb_synthesizer_ccf</block> <block>rational_resampler_base_xxx</block> <block>single_pole_iir_filter_xx</block> + <block>channel_model</block> </cat> </cat> |