1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

Fixed Interferometer and BeamSteeringCW absolute center frequency display

This commit is contained in:
f4exb
2022-05-26 12:28:18 +02:00
parent 4b321a847f
commit 60a114b7b8
4 changed files with 18 additions and 0 deletions
@@ -79,6 +79,7 @@ bool InterferometerGUI::handleMessage(const Message& message)
m_sampleRate = notif.getSampleRate();
m_centerFrequency = notif.getCenterFrequency();
displayRateAndShift();
updateAbsoluteCenterFrequency();
return true;
}
else if (Interferometer::MsgConfigureInterferometer::match(message))
@@ -206,6 +207,7 @@ void InterferometerGUI::displaySettings()
ui->phaseCorrection->setValue(m_settings.m_phase);
ui->phaseCorrectionText->setText(tr("%1").arg(m_settings.m_phase));
getRollupContents()->restoreState(m_rollupState);
updateAbsoluteCenterFrequency();
blockApplySettings(false);
}
@@ -345,6 +347,7 @@ void InterferometerGUI::applyPosition()
ui->filterChainText->setText(s);
displayRateAndShift();
updateAbsoluteCenterFrequency();
applySettings();
}
@@ -362,3 +365,8 @@ void InterferometerGUI::makeUIConnections()
QObject::connect(ui->phaseCorrection, &QSlider::valueChanged, this, &InterferometerGUI::on_phaseCorrection_valueChanged);
QObject::connect(ui->correlationType, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &InterferometerGUI::on_correlationType_currentIndexChanged);
}
void InterferometerGUI::updateAbsoluteCenterFrequency()
{
setStatusFrequency(m_centerFrequency + m_shiftFrequencyFactor * m_sampleRate);
}