summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorBen Reynwar2010-12-09 15:19:03 -0700
committerBen Reynwar2010-12-09 15:19:03 -0700
commitad4ad13c62f397e6f5940ca251af77fa77392998 (patch)
tree63878bed1750c6b78c49bc4c87af079fb8f36dbb /gnuradio-core
parent31c8002c506d8452915163d9a57a00746e7dfc5b (diff)
parent7b19372f83fede6a1d55e4b70202aa58b004e9f8 (diff)
downloadgnuradio-ad4ad13c62f397e6f5940ca251af77fa77392998.tar.gz
gnuradio-ad4ad13c62f397e6f5940ca251af77fa77392998.tar.bz2
gnuradio-ad4ad13c62f397e6f5940ca251af77fa77392998.zip
Merge branch 'grorg-master'
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
index e40d9636a..cd9289fa5 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
@@ -31,15 +31,22 @@ class pfb_arb_resampler_ccf(gr.hier_block2):
streams. This block is provided to be consistent with the interface to the
other PFB block.
'''
- def __init__(self, rate, taps, flt_size=32):
+ def __init__(self, rate, taps=None, flt_size=32, atten=80):
gr.hier_block2.__init__(self, "pfb_arb_resampler_ccf",
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
self._rate = rate
- self._taps = taps
self._size = flt_size
+ if taps is not None:
+ self._taps = taps
+ else:
+ # Create a filter that covers the full bandwidth of the input signal
+ bw = 0.5
+ tb = 0.1
+ self._taps = gr.firdes.low_pass_2(self._size, self._size, bw, tb, atten)
+
self.pfb = gr.pfb_arb_resampler_ccf(self._rate, self._taps, self._size)
self.connect(self, self.pfb)