summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authormatt2006-09-11 21:48:35 +0000
committermatt2006-09-11 21:48:35 +0000
commit23703f65f0d1cb5e1245a8448d59c1462659fc91 (patch)
tree42a610397201890a4f119cabbedebee8e473186e /gnuradio-core/src
parentb15586bbab01e39cc5b888413abbc4c2a19d1ab4 (diff)
downloadgnuradio-23703f65f0d1cb5e1245a8448d59c1462659fc91.tar.gz
gnuradio-23703f65f0d1cb5e1245a8448d59c1462659fc91.tar.bz2
gnuradio-23703f65f0d1cb5e1245a8448d59c1462659fc91.zip
make this block do what it says its doing. Patch from Henryk Plötz, henryk _at_ ploetzli.ch
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3523 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc2
1 files changed, 1 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 4736e77cf..b6187aca9 100644
--- a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc
@@ -107,7 +107,7 @@ gr_pll_carriertracking_cc::work (int noutput_items,
else if (d_freq < d_min_freq)
d_freq = d_min_freq;
gr_sincosf(d_phase,&t_imag,&t_real);
- optr[i] = gr_complex(t_real,t_imag);
+ optr[i] = iptr[i] * gr_complex(t_real,-t_imag);
d_locksig = d_locksig * (1.0 - d_alpha) + d_alpha*(iptr[i].real() * t_real + iptr[i].imag() * t_imag);
if ((d_squelch_enable) && !lock_detector())