1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

Added infradyne or supradyne option when decimating

This commit is contained in:
f4exb
2015-07-02 01:00:27 +02:00
parent f2af402087
commit 637c6e74f7
7 changed files with 292 additions and 26 deletions
@@ -130,6 +130,8 @@ void BladerfGui::displaySettings()
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);
ui->lnaGainText->setText(tr("%1").arg(m_settings.m_lnaGain));
ui->lna->setValue(m_settings.m_lnaGain);
@@ -179,6 +181,17 @@ void BladerfGui::on_decim_valueChanged(int value)
sendSettings();
}
void BladerfGui::on_fcPos_currentIndexChanged(int index)
{
if (index == 0) {
m_settings.m_fcPos = BladerfInput::FC_POS_INFRA;
sendSettings();
} else if (index == 1) {
m_settings.m_fcPos = BladerfInput::FC_POS_SUPRA;
sendSettings();
}
}
void BladerfGui::on_lna_valueChanged(int value)
{
std::cerr << "BladerfGui: LNA gain = " << value << std::endl;