summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-07-18 16:07:20 -0400
committerTom Rondeau <tom@trondeau.com>2014-07-18 16:07:20 -0400
commitd6260c22f129449418450623abdd0cbd69fd0402 (patch)
tree6b34ccfe39f3df56aa79d6e9c4c7f8760fea32ec
parentb4ddba76f8be72aa08be6fb16be5ca0d1d2148bd (diff)
filter: fixed relative_rate setup in pfb_channelizer.
The channelizer takes in data already decimated by N channels, generally througha stream_to_streams block on the input ports. This already changes the relative rate, so 1 input sample per port equals M samples on the output channel where M is the oversampling rate.
-rw-r--r--gr-filter/lib/pfb_channelizer_ccf_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-filter/lib/pfb_channelizer_ccf_impl.cc b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
index c439353505..04f0b96037 100644
--- a/gr-filter/lib/pfb_channelizer_ccf_impl.cc
+++ b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
@@ -64,7 +64,7 @@ namespace gr {
if(fabsf(srate - rsrate) > 0.00001)
throw std::invalid_argument("pfb_channelizer: oversample rate must be N/i for i in [1, N]");
- set_relative_rate(srate);
+ set_relative_rate(oversample_rate);
// Default channel map. The channel map specifies which input
// goes to which output channel; so out[0] comes from