diff options
-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 |