mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
DATV demod: change interpolator and NCO in the same block
This commit is contained in:
parent
e384c06739
commit
7852ab79a6
@ -1391,16 +1391,12 @@ void DATVDemodSink::applySettings(const DATVDemodSettings& settings, bool force)
|
||||
}
|
||||
|
||||
if ((m_settings.m_rfBandwidth != settings.m_rfBandwidth)
|
||||
|| (m_settings.m_symbolRate != settings.m_symbolRate) || force)
|
||||
|| (m_settings.m_symbolRate != settings.m_symbolRate)
|
||||
|| (m_settings.m_centerFrequency != settings.m_centerFrequency) || force)
|
||||
{
|
||||
m_interpolator.create(m_interpolatorPhaseSteps, m_channelSampleRate, settings.m_rfBandwidth / 2.2, m_interpolatorTapsPerPhase);
|
||||
m_interpolatorDistanceRemain = 0;
|
||||
m_interpolatorDistance = (Real) m_channelSampleRate / (Real) (2 * settings.m_symbolRate);
|
||||
}
|
||||
|
||||
if ((m_settings.m_centerFrequency != settings.m_centerFrequency)
|
||||
|| force)
|
||||
{
|
||||
m_nco.setFreq(-(float) settings.m_centerFrequency, (float) m_channelSampleRate);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user