summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorTom Rondeau2012-02-29 20:42:17 -0500
committerTom Rondeau2012-02-29 20:42:17 -0500
commit0f73b0991f4da55b118b4029e2e53fde64580caa (patch)
tree9cf995bbb59591619a17c34cfbcaef349a7563b6 /grc
parented72fd930b6c7c23273c928d02b54587c0cac9a3 (diff)
downloadgnuradio-0f73b0991f4da55b118b4029e2e53fde64580caa.tar.gz
gnuradio-0f73b0991f4da55b118b4029e2e53fde64580caa.tar.bz2
gnuradio-0f73b0991f4da55b118b4029e2e53fde64580caa.zip
grc: grc PFB channelizer and synthesize to set channel map defaults on startup.
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/blks2_pfb_channelizer.xml4
-rw-r--r--grc/blocks/gr_pfb_synthesis_filterbank.xml2
2 files changed, 5 insertions, 1 deletions
diff --git a/grc/blocks/blks2_pfb_channelizer.xml b/grc/blocks/blks2_pfb_channelizer.xml
index 5a1b20edb..0dba6108b 100644
--- a/grc/blocks/blks2_pfb_channelizer.xml
+++ b/grc/blocks/blks2_pfb_channelizer.xml
@@ -14,11 +14,12 @@
$taps,
$osr,
$atten)
+self.$(id).set_channel_map($ch_map)
</make>
<!-- Set taps not implemented yet
<callback>set_taps($taps)</callback>
-->
- <callback>set_channel_map(ch_$map)</callback>
+ <callback>set_channel_map($ch_map)</callback>
<param>
<name>Channels</name>
@@ -46,6 +47,7 @@
<param>
<name>Channel Map</name>
<key>ch_map</key>
+ <value>[]</value>
<type>int_vector</type>
</param>
<sink>
diff --git a/grc/blocks/gr_pfb_synthesis_filterbank.xml b/grc/blocks/gr_pfb_synthesis_filterbank.xml
index 6ea54632c..823eb50c4 100644
--- a/grc/blocks/gr_pfb_synthesis_filterbank.xml
+++ b/grc/blocks/gr_pfb_synthesis_filterbank.xml
@@ -11,6 +11,7 @@
<import>from gnuradio.gr import firdes</import>
<make>gr.pfb_synthesis_filterbank_ccf(
$numchans, $taps, $twox)
+self.$(id).set_channel_map($ch_map)
</make>
<callback>set_taps($taps)</callback>
<callback>set_channel_map($ch_map)</callback>
@@ -41,6 +42,7 @@
<param>
<name>Channel Map</name>
<key>ch_map</key>
+ <value>[]</value>
<type>int_vector</type>
</param>
<sink>