1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-19 15:07:52 -04:00

VOR Demodulator: Reset filters when navId changes, to avoid glitches in calculated radial

This commit is contained in:
Jon Beniston 2022-05-04 10:05:03 +01:00
parent 7d2fc09a65
commit 600699a1a8
2 changed files with 4 additions and 2 deletions

View File

@ -260,8 +260,8 @@ void VORDemod::applySettings(const VORDemodSettings& settings, bool force)
// Reset state so we don't report old data for new NavId
m_radial = 0.0f;
m_refMag = 0.0f;
m_varMag = 0.0f;
m_refMag = -200.0f;
m_varMag = -200.0f;
m_morseIdent = "";
}
if ((m_settings.m_squelch != settings.m_squelch) || force) {

View File

@ -412,6 +412,8 @@ void VORDemodSCSink::applySettings(const VORDemodSettings& settings, bool force)
m_identMaxs[i] = 0.0f;
}
m_ident = "";
m_refGoertzel.reset();
m_varGoertzel.reset();
}
m_settings = settings;