diff options
author | Tom | 2010-01-02 16:30:57 -0500 |
---|---|---|
committer | Tom | 2010-01-02 16:30:57 -0500 |
commit | a3418ea4a658cefb02e28b23a5462149aa9d05c3 (patch) | |
tree | 4a17d272c098d8ca1cdb4763a58a99e1c5f44c55 /gnuradio-core/src/lib/general | |
parent | 977b0e098fc602e61b7cb40791d53dde0adf63aa (diff) | |
download | gnuradio-a3418ea4a658cefb02e28b23a5462149aa9d05c3.tar.gz gnuradio-a3418ea4a658cefb02e28b23a5462149aa9d05c3.tar.bz2 gnuradio-a3418ea4a658cefb02e28b23a5462149aa9d05c3.zip |
Since I'm bothering to average the error, I might as well use it.
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |