Changed sample rate from 20M to 19.2M for faster lock.
authorcswiger <cswiger@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 16 May 2008 17:29:29 +0000 (17:29 +0000)
committercswiger <cswiger@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 16 May 2008 17:29:29 +0000 (17:29 +0000)
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

index c4a55024375f8990a55acaa4ec615ff1a80f3e83..f5bf39d20ff8459d6e68841aeacaeae56e2405e0 100644 (file)
@@ -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