1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

WFM modulator: fixed default RF bandwidth and default channel marker width

This commit is contained in:
f4exb 2017-01-10 01:09:57 +01:00
parent e405f151e0
commit 3dc18c675e

View File

@ -120,7 +120,7 @@ bool WFMModGUI::deserialize(const QByteArray& data)
d.readS32(1, &tmp, 0);
m_channelMarker.setCenterFrequency(tmp);
d.readS32(2, &tmp, 6);
d.readS32(2, &tmp, 7);
ui->rfBW->setCurrentIndex(tmp);
d.readS32(3, &tmp, 3);
ui->afBW->setValue(tmp);
@ -365,7 +365,7 @@ WFMModGUI::WFMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa
for (int i = 0; i < m_nbRfBW; i++) {
ui->rfBW->addItem(QString("%1").arg(m_rfBW[i] / 1000.0, 0, 'f', 2));
}
ui->rfBW->setCurrentIndex(6);
ui->rfBW->setCurrentIndex(7);
blockApplySettings(false);
@ -384,7 +384,7 @@ WFMModGUI::WFMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa
//m_channelMarker = new ChannelMarker(this);
m_channelMarker.setColor(Qt::blue);
m_channelMarker.setBandwidth(12500);
m_channelMarker.setBandwidth(m_rfBW[ui->rfBW->currentIndex()]);
m_channelMarker.setCenterFrequency(0);
m_channelMarker.setVisible(true);