From a3418ea4a658cefb02e28b23a5462149aa9d05c3 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 2 Jan 2010 16:30:57 -0500 Subject: Since I'm bothering to average the error, I might as well use it. --- gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnuradio-core/src/lib/general') diff --git a/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc b/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc index 03ce16bd7..030e45ddf 100644 --- a/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc +++ b/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc @@ -185,8 +185,8 @@ gr_fll_band_edge_cc::work (int noutput_items, error = out_lower - out_upper; d_error = 0.01*error + 0.99*d_error; // average error - d_freq = d_freq + d_beta * error; - d_phase = d_phase + d_freq + d_alpha * error; + d_freq = d_freq + d_beta * d_error; + d_phase = d_phase + d_freq + d_alpha * d_error; if(d_phase > M_PI) d_phase -= M_TWOPI; -- cgit