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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user