From 23703f65f0d1cb5e1245a8448d59c1462659fc91 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 11 Sep 2006 21:48:35 +0000 Subject: 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 --- gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnuradio-core/src') 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()) -- cgit