1
0
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:
f4exb
2015-10-01 06:30:50 +02:00
parent 2ceacfa107
commit dc81e2dd9c
8 changed files with 203 additions and 21 deletions
+15
View File
@@ -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))