diff options
author | Eric Blossom | 2010-12-06 23:16:25 -0800 |
---|---|---|
committer | Eric Blossom | 2010-12-06 23:16:25 -0800 |
commit | 55685f7a8ac97186de05a9e806824fa48e327d47 (patch) | |
tree | adfb51f196eeff692182ff6e8fad2b2b5ac8713d /gnuradio-core/src/python | |
parent | 59a1eeb1b18483ec716afde24df3f0593ed5085c (diff) | |
parent | e13783aeb84a2c3656c3344a8d52fa2c9ee38a00 (diff) | |
download | gnuradio-55685f7a8ac97186de05a9e806824fa48e327d47.tar.gz gnuradio-55685f7a8ac97186de05a9e806824fa48e327d47.tar.bz2 gnuradio-55685f7a8ac97186de05a9e806824fa48e327d47.zip |
Merge branch 'next' into guile-next
* next: (116 commits)
Adding new example script for using the new PFB arbitrary resampler interface. One resampler takes user-generated taps and another resampler just takes the resampling rate. Both input and output signals are plotted.
Modifying blsk2 wrapper for PFB arbitrary resampler to allow the user to just specify the requested resampling rate without providing their own filter taps.
uhd: reverting tag changes on uhd single usrp source, there seems to be issues with the work() logic
uhd: removed default value chan=0 in the cc files
WITH_INCLUDES _must_ be last
uhd: replaced CFLAGS with CPPFLAGS variable, and fixed swig args FIXME
uhd: default channel params to zero for single source and sink blocks
Revert "Removed usrp2-firmware from being automatically built."
Remove generated file from repo
Removed usrp2-firmware from being automatically built.
uhd: added libdir to UHD CFLAGS (shared by lib and swig)
Swapping out preset keys until I work out some of their issues.
Modifying QA tests for the sample tags. By default, it only checks the sizes of the tags since order is not specified or guarenteed.
Block is a gr_block, so this sets its relative rate. Was required for using in the QA of the sample tags code.
Removing global pmt constants. Were causing segfaults during make check. Must fix this later.
Fixing up the UHD sample tag example to take command line options.
Swapping order of testing rrate.
Changing propagation policy enum type name and making a few other minor edits.
Changing API for gr_skiphead to use uint64_t for the offset instead of size_t (still unsigned). Fixes issue #304.
Adding typedef for uint64_t and int64_t so we can use them through SWIG.
...
Passes make distcheck.
Diffstat (limited to 'gnuradio-core/src/python')
-rw-r--r-- | gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py | 11 |
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) |