X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=gnuradio-core%2Fsrc%2Flib%2Fgeneral%2Fgr_pll_freqdet_cf.cc;h=c9fd9a71e8a4e4272aacd270804cee0a1102421d;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=006f029defaf92c699b7c108d48c82fc0580c24f;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc index 006f029d..c9fd9a71 100644 --- a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc +++ b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc @@ -29,6 +29,7 @@ #include #include #include +#include #define M_TWOPI (2*M_PI) @@ -63,7 +64,7 @@ float gr_pll_freqdet_cf::phase_detector(gr_complex sample,float ref_phase) { float sample_phase; - sample_phase = atan2(sample.imag(),sample.real()); + sample_phase = gr_fast_atan2f(sample.imag(),sample.real()); return mod_2pi(sample_phase-ref_phase); }