commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r4584 - gnuradio/branches/developers/n4hy/ofdm/gnuradi


From: n4hy
Subject: [Commit-gnuradio] r4584 - gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general
Date: Thu, 22 Feb 2007 07:55:16 -0700 (MST)

Author: n4hy
Date: 2007-02-22 07:55:16 -0700 (Thu, 22 Feb 2007)
New Revision: 4584

Modified:
   
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_dpll_ff.cc
Log:
bug fix in gr_dpll_ff.cc

Modified: 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_dpll_ff.cc
===================================================================
--- 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_dpll_ff.cc
  2007-02-22 05:28:14 UTC (rev 4583)
+++ 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_dpll_ff.cc
  2007-02-22 14:55:16 UTC (rev 4584)
@@ -60,7 +60,7 @@
     if(iptr[i] ==(float)1) {
       if (d_restart == 0) {
        d_pulse_phase = 1;
-       d_restart += 2;
+       d_restart += 3;
       } else {
        if (d_restart == 1) d_restart+=1;
        if (d_pulse_phase > 0.5) d_pulse_phase += d_gain*(1.0-d_pulse_phase);
@@ -69,8 +69,10 @@
     }
     if (d_pulse_phase > d_decision_threshold) {
       d_pulse_phase -= 1.0;
-      if (d_restart > 0) d_restart -= 1;
-      optr[i] = (float)1;
+      if (d_restart > 0) {
+       d_restart -= 1;
+       optr[i] = (float)1;
+      }
     }
     d_pulse_phase += d_pulse_frequency;
   }





reply via email to

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