summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc4
1 files changed, 3 insertions, 1 deletions
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 <gr_io_signature.h>
#include <gr_sincos.h>
#include <math.h>
+#include <gr_math.h>
#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);
}