Cleaning up constructor.
authorTom <trondeau@vt.edu>
Fri, 9 Oct 2009 21:33:39 +0000 (14:33 -0700)
committerTom <trondeau@vt.edu>
Fri, 9 Oct 2009 21:33:39 +0000 (14:33 -0700)
gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc

index 1507d7492a36abd10f079f2bdfb886bb1371aad9..3af53fed5b7f408451a933f9419728993312adc2 100644 (file)
@@ -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);