From 3006298886b72b7d7da5c803c16f5b07b72a05ef Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 9 Oct 2009 14:33:39 -0700 Subject: [PATCH] Cleaning up constructor. --- gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc | 3 +-- 1 file changed, 1 insertion(+), 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 1507d749..3af53fed 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); -- 2.47.2