summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorTom2009-10-09 14:33:39 -0700
committerTom2009-10-09 14:33:39 -0700
commit3006298886b72b7d7da5c803c16f5b07b72a05ef (patch)
treef0cba98504348fc237688a0b397dfecae8a117ac /gnuradio-core
parentabbd0afddfec59a8a9bbf0d5da4625e1c28f4135 (diff)
downloadgnuradio-3006298886b72b7d7da5c803c16f5b07b72a05ef.tar.gz
gnuradio-3006298886b72b7d7da5c803c16f5b07b72a05ef.tar.bz2
gnuradio-3006298886b72b7d7da5c803c16f5b07b72a05ef.zip
Cleaning up constructor.
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
index 1507d7492..3af53fed5 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
@@ -64,10 +64,9 @@ gr_pfb_clock_sync_ccf::gr_pfb_clock_sync_ccf (double sps, float gain,
// Store the last filter between calls to work
// The accumulator keeps track of overflow to increment the stride correctly.
// set it here to the fractional difference based on the initial phaes
- // assert(init_phase <= 2*M_PI);
set_alpha(gain);
set_beta(0.25*gain*gain);
- d_k = d_nfilters / 2;
+ d_k = init_phase;
d_rate = (sps-floor(sps))*(double)d_nfilters;
d_filtnum = (int)floor(d_k);