diff options
author | n4hy | 2006-12-14 03:31:45 +0000 |
---|---|---|
committer | n4hy | 2006-12-14 03:31:45 +0000 |
commit | 732324bb5569286f035eec8ad0d6923b3ad843ce (patch) | |
tree | e6d62b5ec5f5e82621d3f49f89f370cbd82c9673 /gnuradio-core | |
parent | 76ed4c2fea5f59bfe02bbbb17754ef7eda44feca (diff) | |
download | gnuradio-732324bb5569286f035eec8ad0d6923b3ad843ce.tar.gz gnuradio-732324bb5569286f035eec8ad0d6923b3ad843ce.tar.bz2 gnuradio-732324bb5569286f035eec8ad0d6923b3ad843ce.zip |
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
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc | 4 |
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); } |