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:
parent
7d2fc09a65
commit
600699a1a8
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user