commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r8433 - gnuradio/trunk/gr-atsc/src/lib


From: cswiger
Subject: [Commit-gnuradio] r8433 - gnuradio/trunk/gr-atsc/src/lib
Date: Fri, 16 May 2008 11:29:30 -0600 (MDT)

Author: cswiger
Date: 2008-05-16 11:29:29 -0600 (Fri, 16 May 2008)
New Revision: 8433

Modified:
   gnuradio/trunk/gr-atsc/src/lib/atsc_fpll.cc
Log:
Changed sample rate from 20M to 19.2M for faster lock.
Changed phase detector from atan2 to gr_fast_atan2f for speedup.


Modified: gnuradio/trunk/gr-atsc/src/lib/atsc_fpll.cc
===================================================================
--- gnuradio/trunk/gr-atsc/src/lib/atsc_fpll.cc 2008-05-16 06:32:50 UTC (rev 
8432)
+++ gnuradio/trunk/gr-atsc/src/lib/atsc_fpll.cc 2008-05-16 17:29:29 UTC (rev 
8433)
@@ -29,8 +29,8 @@
 #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 @@
 void
 atsc_fpll::initialize ()
 {
-  float Fs = 20e6;
+  float Fs = 19.2e6;
 
   float alpha = 1 - exp(-1.0 / Fs / 5e-6);
 
@@ -106,7 +106,8 @@
 
     // 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
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]