commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/05: filter: Fixes setting sample delay d


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/05: filter: Fixes setting sample delay declaration for the PFB channelizer and in GRC.
Date: Wed, 1 Oct 2014 15:49:17 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit a56e163b333ef4072f188fcc7a0bf19f315ab2e5
Author: Andy Walls <address@hidden>
Date:   Tue Sep 30 22:01:19 2014 -0400

    filter: Fixes setting sample delay declaration for the PFB channelizer and 
in GRC.
    
    Addresses issue #695.
---
 gr-filter/grc/filter_pfb_channelizer.xml | 8 ++++++++
 gr-filter/python/filter/pfb.py           | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/gr-filter/grc/filter_pfb_channelizer.xml 
b/gr-filter/grc/filter_pfb_channelizer.xml
index f8a51d2..446acf0 100644
--- a/gr-filter/grc/filter_pfb_channelizer.xml
+++ b/gr-filter/grc/filter_pfb_channelizer.xml
@@ -15,6 +15,7 @@
          $osr,
          $atten)
 self.$(id).set_channel_map($ch_map)
+self.$(id).declare_sample_delay($samp_delay)
        </make>
         <callback>set_taps($taps)</callback>
         <callback>set_channel_map($ch_map)</callback>
@@ -44,6 +45,13 @@ self.$(id).set_channel_map($ch_map)
                <type>real</type>
        </param>
        <param>
+               <name>Sample Delay</name>
+               <key>samp_delay</key>
+               <value>0</value>
+               <type>int</type>
+               <hide>part</hide>
+       </param>
+       <param>
                <name>Channel Map</name>
                <key>ch_map</key>
                <value>[]</value>
diff --git a/gr-filter/python/filter/pfb.py b/gr-filter/python/filter/pfb.py
index c08f9d1..2227058 100644
--- a/gr-filter/python/filter/pfb.py
+++ b/gr-filter/python/filter/pfb.py
@@ -84,6 +84,10 @@ class channelizer_ccf(gr.hier_block2):
     def taps(self):
         return self.pfb.taps()
 
+    def declare_sample_delay(self, delay):
+        self.pfb.declare_sample_delay(delay)
+
+
 class interpolator_ccf(gr.hier_block2):
     '''
     Make a Polyphase Filter interpolator (complex in, complex out, 
floating-point taps)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]