diff options
author | cswiger | 2008-05-16 17:29:29 +0000 |
---|---|---|
committer | cswiger | 2008-05-16 17:29:29 +0000 |
commit | 2b244aa14c71eb588ec7109d56bebe2e4b317744 (patch) | |
tree | 3606d947253b2254453545e2c1a6aaa753b10c42 | |
parent | 0b47f2b4bc48583f997ac212958b7a87d0f46633 (diff) | |
download | gnuradio-2b244aa14c71eb588ec7109d56bebe2e4b317744.tar.gz gnuradio-2b244aa14c71eb588ec7109d56bebe2e4b317744.tar.bz2 gnuradio-2b244aa14c71eb588ec7109d56bebe2e4b317744.zip |
Changed sample rate from 20M to 19.2M for faster lock.
Changed phase detector from atan2 to gr_fast_atan2f for speedup.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8433 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | gr-atsc/src/lib/atsc_fpll.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-atsc/src/lib/atsc_fpll.cc b/gr-atsc/src/lib/atsc_fpll.cc index c4a550243..f5bf39d20 100644 --- a/gr-atsc/src/lib/atsc_fpll.cc +++ b/gr-atsc/src/lib/atsc_fpll.cc @@ -29,7 +29,7 @@ #include <atsc_consts.h> #include <algorithm> #include "fpll_btloop_coupling.h" - +#include <gr_math.h> atsc_fpll_sptr atsc_make_fpll() @@ -66,7 +66,7 @@ atsc_fpll::atsc_fpll() void atsc_fpll::initialize () { - float Fs = 20e6; + float Fs = 19.2e6; float alpha = 1 - exp(-1.0 / Fs / 5e-6); @@ -106,7 +106,8 @@ atsc_fpll::work (int noutput_items, // phase detector - float x = atan2 (filtered_Q, filtered_I); + // float x = atan2 (filtered_Q, filtered_I); + float x = gr_fast_atan2f(filtered_Q, filtered_I); // avoid slamming filter with big transitions |