diff options
author | Ron Economos <w6rz@comcast.net> | 2021-03-14 14:13:08 -0700 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-03-16 15:25:52 -0400 |
commit | a1a3d860ecb8ffef9f2baccc2721d2d39071ba1c (patch) | |
tree | ab8b4001d37885efd0f543dbd0827ad726d5a37f /gr-blocks/lib | |
parent | c317661088fcfee3cd29cdbe99bd729ed874548a (diff) |
gr-blocks: Fix Remove DC Spike AutoSync block.
Signed-off-by: Ron Economos <w6rz@comcast.net>
Diffstat (limited to 'gr-blocks/lib')
-rw-r--r-- | gr-blocks/lib/correctiq_auto_impl.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-blocks/lib/correctiq_auto_impl.cc b/gr-blocks/lib/correctiq_auto_impl.cc index efd97a540e..784a2d6998 100644 --- a/gr-blocks/lib/correctiq_auto_impl.cc +++ b/gr-blocks/lib/correctiq_auto_impl.cc @@ -123,11 +123,13 @@ float correctiq_auto_impl::get_gain() const { return d_gain; } void correctiq_auto_impl::set_freq(double new_value) { + d_freq = new_value; trigger_resync("Frequency change detected"); } void correctiq_auto_impl::set_gain(float new_value) { + d_gain = new_value; trigger_resync("Gain change detected"); } @@ -158,10 +160,10 @@ int correctiq_auto_impl::work(int noutput_items, const float* in = (const float*)input_items[0]; float* out = (float*)output_items[0]; - volk_32f_x2_add_32f(out, - in, - reinterpret_cast<float*>(d_volk_const_buffer.data()), - 2 * noutput_items); + volk_32f_x2_subtract_32f(out, + in, + reinterpret_cast<float*>(d_volk_const_buffer.data()), + 2 * noutput_items); } if (!d_synchronized && (d_sync_counter >= d_max_sync_samples)) { |