From 732324bb5569286f035eec8ad0d6923b3ad843ce Mon Sep 17 00:00:00 2001 From: n4hy Date: Thu, 14 Dec 2006 03:31:45 +0000 Subject: Modified gr_pll_carriertracking to use gr_fast_atan2 rather than atan2 git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4079 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnuradio-core') diff --git a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc index f40709b82..45d9bd940 100644 --- a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc +++ b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc @@ -28,6 +28,7 @@ #include #include #include +#include #define M_TWOPI (2*M_PI) @@ -63,7 +64,8 @@ float gr_pll_carriertracking_cc::phase_detector(gr_complex sample,float ref_phase) { float sample_phase; - sample_phase = atan2(sample.imag(),sample.real()); + // sample_phase = atan2(sample.imag(),sample.real()); + sample_phase = gr_fast_atan2f(sample.imag(),sample.real()); return mod_2pi(sample_phase-ref_phase); } -- cgit