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

pull/1232/head
Jon Beniston 2022-05-04 10:05:03 +01:00
rodzic 7d2fc09a65
commit 600699a1a8
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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) {

Wyświetl plik

@ -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;