Author: n4hy
Date: 2007-02-22 11:00:15 -0700 (Thu, 22 Feb 2007)
New Revision: 4595
Modified:
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_dpll_ff.cc
Log:
bug fix in dpll
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 17:29:40 UTC (rev 4594)
+++
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_dpll_ff.cc
2007-02-22 18:00:15 UTC (rev 4595)
@@ -67,12 +67,11 @@
if(iptr[i] ==(float)1) {
if (d_restart == 0) {
d_pulse_phase = 1;
- d_restart += 3;
} else {
- if (d_restart >0) d_restart+=1;
if (d_pulse_phase > 0.5) d_pulse_phase += d_gain*(1.0-d_pulse_phase);
else d_pulse_phase -= d_gain*d_pulse_phase;
}
+ d_restart = 3;
}
if (d_pulse_phase > d_decision_threshold) {
d_pulse_phase -= 1.0;
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio