From: Tom Date: Fri, 9 Oct 2009 21:33:39 +0000 (-0700) Subject: Cleaning up constructor. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=3006298886b72b7d7da5c803c16f5b07b72a05ef;p=debian%2Fgnuradio Cleaning up constructor. --- 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);