commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/01: filter: fixed relative_rate setup in


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: filter: fixed relative_rate setup in pfb_channelizer.
Date: Fri, 18 Jul 2014 20:10:35 +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 d6260c22f129449418450623abdd0cbd69fd0402
Author: Tom Rondeau <address@hidden>
Date:   Fri Jul 18 16:07:20 2014 -0400

    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.
---
 gr-filter/lib/pfb_channelizer_ccf_impl.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gr-filter/lib/pfb_channelizer_ccf_impl.cc 
b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
index c439353..04f0b96 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



reply via email to

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