1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-06 07:07:48 -04:00

Fixed BladeRF plugin LNA gain setting. Appended dB unit for gain

displays.
This commit is contained in:
f4exb 2015-07-26 20:44:05 +02:00
parent bb7c032216
commit 5c0330e00a
3 changed files with 9 additions and 8 deletions

View File

@ -125,12 +125,13 @@ Done since the fork
- Implemented trigger delay - Implemented trigger delay
- Trigger on both edges - Trigger on both edges
- Spectrum histogram clear - Spectrum histogram clear
- Trigger line display for all trigger modes
- Coarse and fine trigger level sliders
===== =====
To Do To Do
===== =====
- Trigger line display for all trigger modes
- Level calibration - Level calibration
- Enhance presets management (Edit, Move, Import/Export from/to human readable format like JSON) - Enhance presets management (Edit, Move, Import/Export from/to human readable format like JSON)
- recording capability - recording capability

View File

@ -134,13 +134,13 @@ void BladerfGui::displaySettings()
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos); ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
ui->lnaGainText->setText(tr("%1").arg(m_settings.m_lnaGain)); ui->lnaGainText->setText(tr("%1dB").arg(m_settings.m_lnaGain*3));
ui->lna->setValue(m_settings.m_lnaGain); ui->lna->setValue(m_settings.m_lnaGain);
ui->vga1Text->setText(tr("%1").arg(m_settings.m_vga1)); ui->vga1Text->setText(tr("%1dB").arg(m_settings.m_vga1));
ui->vga1->setValue(m_settings.m_vga1); ui->vga1->setValue(m_settings.m_vga1);
ui->vga2Text->setText(tr("%1").arg(m_settings.m_vga2)); ui->vga2Text->setText(tr("%1dBS").arg(m_settings.m_vga2));
ui->vga2->setValue(m_settings.m_vga2); ui->vga2->setValue(m_settings.m_vga2);
ui->xb200->setCurrentIndex(getXb200Index(m_settings.m_xb200, m_settings.m_xb200Path, m_settings.m_xb200Filter)); ui->xb200->setCurrentIndex(getXb200Index(m_settings.m_xb200, m_settings.m_xb200Path, m_settings.m_xb200Filter));
@ -204,7 +204,7 @@ void BladerfGui::on_lna_valueChanged(int value)
if ((value < 0) || (value > 2)) if ((value < 0) || (value > 2))
return; return;
ui->lnaGainText->setText(tr("%1k").arg(value)); ui->lnaGainText->setText(tr("%1dB").arg(value*3));
m_settings.m_lnaGain = value; m_settings.m_lnaGain = value;
sendSettings(); sendSettings();
} }
@ -214,7 +214,7 @@ void BladerfGui::on_vga1_valueChanged(int value)
if ((value < BLADERF_RXVGA1_GAIN_MIN) || (value > BLADERF_RXVGA1_GAIN_MAX)) if ((value < BLADERF_RXVGA1_GAIN_MIN) || (value > BLADERF_RXVGA1_GAIN_MAX))
return; return;
ui->vga1Text->setText(tr("%1").arg(value)); ui->vga1Text->setText(tr("%1dB").arg(value));
m_settings.m_vga1 = value; m_settings.m_vga1 = value;
sendSettings(); sendSettings();
} }
@ -224,7 +224,7 @@ void BladerfGui::on_vga2_valueChanged(int value)
if ((value < BLADERF_RXVGA2_GAIN_MIN) || (value > BLADERF_RXVGA2_GAIN_MAX)) if ((value < BLADERF_RXVGA2_GAIN_MIN) || (value > BLADERF_RXVGA2_GAIN_MAX))
return; return;
ui->vga2Text->setText(tr("%1").arg(value)); ui->vga2Text->setText(tr("%1dB").arg(value));
m_settings.m_vga2 = value; m_settings.m_vga2 = value;
sendSettings(); sendSettings();
} }

View File

@ -438,7 +438,7 @@
<item row="0" column="1"> <item row="0" column="1">
<widget class="QSlider" name="lna"> <widget class="QSlider" name="lna">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>LNA amplification</string> <string>LNA amplification</string>