From 2b244aa14c71eb588ec7109d56bebe2e4b317744 Mon Sep 17 00:00:00 2001 From: cswiger Date: Fri, 16 May 2008 17:29:29 +0000 Subject: [PATCH] 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 --- gr-atsc/src/lib/atsc_fpll.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gr-atsc/src/lib/atsc_fpll.cc b/gr-atsc/src/lib/atsc_fpll.cc index c4a55024..f5bf39d2 100644 --- a/gr-atsc/src/lib/atsc_fpll.cc +++ b/gr-atsc/src/lib/atsc_fpll.cc @@ -29,7 +29,7 @@ #include #include #include "fpll_btloop_coupling.h" - +#include 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 -- 2.30.2