From 31c3b11194e32005a82c102b9894b9f69ad1c73b Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 16 Feb 2018 01:23:49 +0100 Subject: [PATCH] DSP source enging DC and IQ correction: reset averages when changing settings --- sdrbase/dsp/dspdevicesourceengine.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sdrbase/dsp/dspdevicesourceengine.cpp b/sdrbase/dsp/dspdevicesourceengine.cpp index f07ae80a7..87a9f1514 100644 --- a/sdrbase/dsp/dspdevicesourceengine.cpp +++ b/sdrbase/dsp/dspdevicesourceengine.cpp @@ -712,6 +712,15 @@ void DSPDeviceSourceEngine::handleInputMessages() m_imbalance = 65536; } + m_avgAmp.reset(); + m_avgII.reset(); + m_avgII2.reset(); + m_avgIQ.reset(); + m_avgPhi.reset(); + m_avgQQ2.reset(); + m_iBeta.reset(); + m_qBeta.reset(); + delete message; } else if (DSPSignalNotification::match(*message))