mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
RTLSDR: implemented Fc position adjustment
This commit is contained in:
@@ -136,6 +136,7 @@ void RTLSDRGui::displaySettings()
|
||||
ui->ppmText->setText(tr("%1").arg(m_settings.m_loPpmCorrection));
|
||||
ui->decimText->setText(tr("%1").arg(1<<m_settings.m_log2Decim));
|
||||
ui->decim->setValue(m_settings.m_log2Decim);
|
||||
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
|
||||
|
||||
if (m_gains.size() > 0)
|
||||
{
|
||||
@@ -191,6 +192,20 @@ void RTLSDRGui::on_decim_valueChanged(int value)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void RTLSDRGui::on_fcPos_currentIndexChanged(int index)
|
||||
{
|
||||
if (index == 0) {
|
||||
m_settings.m_fcPos = RTLSDRSettings::FC_POS_INFRA;
|
||||
sendSettings();
|
||||
} else if (index == 1) {
|
||||
m_settings.m_fcPos = RTLSDRSettings::FC_POS_SUPRA;
|
||||
sendSettings();
|
||||
} else if (index == 2) {
|
||||
m_settings.m_fcPos = RTLSDRSettings::FC_POS_CENTER;
|
||||
sendSettings();
|
||||
}
|
||||
}
|
||||
|
||||
void RTLSDRGui::on_ppm_valueChanged(int value)
|
||||
{
|
||||
if ((value > 99) || (value < -99))
|
||||
|
||||
Reference in New Issue
Block a user