mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Inf/Sup frequency shift scheme change to set bandwidth closer to device center frequency
This commit is contained in:
@@ -274,11 +274,10 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, bool for
|
||||
|
||||
if (settings.m_log2Decim != 0)
|
||||
{
|
||||
if (settings.m_fcPos == TestSourceSettings::FC_POS_INFRA) {
|
||||
frequencyShift -= (devSampleRate / 4);
|
||||
} else if (settings.m_fcPos == TestSourceSettings::FC_POS_SUPRA) {
|
||||
frequencyShift += (devSampleRate / 4);
|
||||
}
|
||||
frequencyShift += DeviceSampleSource::calculateFrequencyShift(
|
||||
settings.m_log2Decim,
|
||||
(DeviceSampleSource::fcPos_t) settings.m_fcPos,
|
||||
settings.m_sampleRate);
|
||||
}
|
||||
|
||||
if (m_testSourceThread != 0)
|
||||
|
||||
Reference in New Issue
Block a user