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
#include <atsc_consts.h>
#include <algorithm>
#include "fpll_btloop_coupling.h"
-
+#include <gr_math.h>
atsc_fpll_sptr
atsc_make_fpll()
void
atsc_fpll::initialize ()
{
- float Fs = 20e6;
+ float Fs = 19.2e6;
float alpha = 1 - exp(-1.0 / Fs / 5e-6);
// 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