mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Added support for HackRF. Interim state #2
This commit is contained in:
@@ -107,7 +107,7 @@ void HackRFGui::handleSourceMessages()
|
||||
|
||||
while ((message = m_sampleSource->getOutputMessageQueueToGUI()->pop()) != 0)
|
||||
{
|
||||
qDebug("AirspyGui::HandleSourceMessages: message: %s", message->getIdentifier());
|
||||
qDebug("HackRFGui::HandleSourceMessages: message: %s", message->getIdentifier());
|
||||
|
||||
if (handleMessage(*message))
|
||||
{
|
||||
@@ -132,9 +132,13 @@ void HackRFGui::displaySettings()
|
||||
|
||||
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
|
||||
|
||||
ui->lnaExt->setChecked(m_settings.m_lnaExt);
|
||||
ui->lnaGainText->setText(tr("%1dB").arg(m_settings.m_lnaGain));
|
||||
ui->lna->setValue(m_settings.m_lnaGain);
|
||||
|
||||
ui->rej->setCurrentIndex(m_settings.m_imjRejFilterIndex);
|
||||
ui->bbFilter->setCurrentIndex(m_settings.m_bandwidthIndex);
|
||||
|
||||
ui->vgaText->setText(tr("%1dB").arg(m_settings.m_vgaGain));
|
||||
ui->vga->setValue(m_settings.m_vgaGain);
|
||||
}
|
||||
@@ -233,12 +237,30 @@ void HackRFGui::on_sampleRate_currentIndexChanged(int index)
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFGui::on_rej_currentIndexChanged(int index)
|
||||
{
|
||||
m_settings.m_imjRejFilterIndex = index;
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFGui::on_bbFilter_currentIndexChanged(int index)
|
||||
{
|
||||
m_settings.m_bandwidthIndex = index;
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFGui::on_biasT_stateChanged(int state)
|
||||
{
|
||||
m_settings.m_biasT = (state == Qt::Checked);
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFGui::on_lnaExt_stateChanged(int state)
|
||||
{
|
||||
m_settings.m_lnaExt = (state == Qt::Checked);
|
||||
sendSettings();
|
||||
}
|
||||
|
||||
void HackRFGui::on_decim_valueChanged(int value)
|
||||
{
|
||||
if ((value <0) || (value > 6))
|
||||
|
||||
Reference in New Issue
Block a user