|
|
|
|
@ -126,10 +126,10 @@ void WFMDemodGUI::on_deltaFrequency_changed(qint64 value)
@@ -126,10 +126,10 @@ void WFMDemodGUI::on_deltaFrequency_changed(qint64 value)
|
|
|
|
|
applySettings(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void WFMDemodGUI::on_rfBW_currentIndexChanged(int index) |
|
|
|
|
void WFMDemodGUI::on_rfBW_changed(quint64 value) |
|
|
|
|
{ |
|
|
|
|
m_channelMarker.setBandwidth(WFMDemodSettings::getRFBW(index)); |
|
|
|
|
m_settings.m_rfBandwidth = WFMDemodSettings::getRFBW(index); |
|
|
|
|
m_channelMarker.setBandwidth(value); |
|
|
|
|
m_settings.m_rfBandwidth = value; |
|
|
|
|
applySettings(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -225,16 +225,11 @@ WFMDemodGUI::WFMDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
@@ -225,16 +225,11 @@ WFMDemodGUI::WFMDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
|
|
|
|
|
ui->deltaFrequency->setValueRange(false, 7, -9999999, 9999999); |
|
|
|
|
ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenAndBlue); |
|
|
|
|
|
|
|
|
|
blockApplySettings(true); |
|
|
|
|
ui->rfBW->clear(); |
|
|
|
|
for (int i = 0; i < WFMDemodSettings::m_nbRFBW; i++) { |
|
|
|
|
ui->rfBW->addItem(QString("%1").arg(WFMDemodSettings::getRFBW(i) / 1000.0, 0, 'f', 2)); |
|
|
|
|
} |
|
|
|
|
ui->rfBW->setCurrentIndex(6); |
|
|
|
|
blockApplySettings(false); |
|
|
|
|
ui->rfBW->setColorMapper(ColorMapper(ColorMapper::GrayYellow)); |
|
|
|
|
ui->rfBW->setValueRange(WFMDemodSettings::m_rfBWDigits, WFMDemodSettings::m_rfBWMin, WFMDemodSettings::m_rfBWMax); |
|
|
|
|
|
|
|
|
|
m_channelMarker.blockSignals(true); |
|
|
|
|
m_channelMarker.setBandwidth(WFMDemodSettings::getRFBW(4)); |
|
|
|
|
m_channelMarker.setBandwidth(m_settings.m_rfBandwidth); |
|
|
|
|
m_channelMarker.setCenterFrequency(0); |
|
|
|
|
m_channelMarker.setTitle("WFM Demodulator"); |
|
|
|
|
m_channelMarker.setColor(m_settings.m_rgbColor); |
|
|
|
|
@ -273,7 +268,7 @@ void WFMDemodGUI::applySettings(bool force)
@@ -273,7 +268,7 @@ void WFMDemodGUI::applySettings(bool force)
|
|
|
|
|
if (m_doApplySettings) |
|
|
|
|
{ |
|
|
|
|
WFMDemod::MsgConfigureChannelizer *msgChan = WFMDemod::MsgConfigureChannelizer::create( |
|
|
|
|
WFMDemod::requiredBW(WFMDemodSettings::getRFBW(ui->rfBW->currentIndex())), |
|
|
|
|
m_settings.m_rfBandwidth, |
|
|
|
|
m_channelMarker.getCenterFrequency()); |
|
|
|
|
m_wfmDemod->getInputMessageQueue()->push(msgChan); |
|
|
|
|
|
|
|
|
|
@ -297,18 +292,13 @@ void WFMDemodGUI::displaySettings()
@@ -297,18 +292,13 @@ void WFMDemodGUI::displaySettings()
|
|
|
|
|
blockApplySettings(true); |
|
|
|
|
|
|
|
|
|
ui->deltaFrequency->setValue(m_channelMarker.getCenterFrequency()); |
|
|
|
|
|
|
|
|
|
ui->rfBW->setCurrentIndex(WFMDemodSettings::getRFBWIndex(m_settings.m_rfBandwidth)); |
|
|
|
|
|
|
|
|
|
ui->rfBW->setValue(m_settings.m_rfBandwidth); |
|
|
|
|
ui->afBW->setValue(m_settings.m_afBandwidth/1000.0); |
|
|
|
|
ui->afBWText->setText(QString("%1 kHz").arg(m_settings.m_afBandwidth/1000.0)); |
|
|
|
|
|
|
|
|
|
ui->volume->setValue(m_settings.m_volume * 10.0); |
|
|
|
|
ui->volumeText->setText(QString("%1").arg(m_settings.m_volume, 0, 'f', 1)); |
|
|
|
|
|
|
|
|
|
ui->squelch->setValue(m_settings.m_squelch); |
|
|
|
|
ui->squelchText->setText(QString("%1 dB").arg(m_settings.m_squelch)); |
|
|
|
|
|
|
|
|
|
ui->audioMute->setChecked(m_settings.m_audioMute); |
|
|
|
|
|
|
|
|
|
blockApplySettings(false); |
|
|
|
|
|