mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
Update spectrum settings to match what's used in sink.
Fix deserialisation of UI related settings.
This commit is contained in:
parent
11bc050b67
commit
4f997afa37
@ -1124,7 +1124,8 @@ ILSDemodGUI::ILSDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
|
||||
ui->p150Units->setVisible(devMode);
|
||||
|
||||
SpectrumSettings spectrumSettings = m_spectrumVis->getSettings();
|
||||
spectrumSettings.m_fftSize = 2048;
|
||||
spectrumSettings.m_fftSize = 256;
|
||||
spectrumSettings.m_fftWindow = FFTWindow::Flattop; // To match what's used in sink
|
||||
spectrumSettings.m_averagingMode = SpectrumSettings::AvgModeMoving;
|
||||
spectrumSettings.m_averagingValue = 1;
|
||||
spectrumSettings.m_displayWaterfall = true;
|
||||
@ -1133,7 +1134,6 @@ ILSDemodGUI::ILSDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
|
||||
spectrumSettings.m_displayHistogram = false;
|
||||
spectrumSettings.m_displayCurrent = true;
|
||||
spectrumSettings.m_spectrumStyle = SpectrumSettings::Gradient;
|
||||
// FLAT TOP?
|
||||
SpectrumVis::MsgConfigureSpectrumVis *msg = SpectrumVis::MsgConfigureSpectrumVis::create(spectrumSettings, false);
|
||||
m_spectrumVis->getInputMessageQueue()->push(msg);
|
||||
|
||||
|
@ -221,9 +221,9 @@ bool ILSDemodSettings::deserialize(const QByteArray& data)
|
||||
d.readBlob(52, &bytetmp);
|
||||
m_rollupState->deserialize(bytetmp);
|
||||
}
|
||||
d.readS32(28, &m_workspaceIndex, 0);
|
||||
d.readBlob(29, &m_geometryBytes);
|
||||
d.readBool(30, &m_hidden, false);
|
||||
d.readS32(53, &m_workspaceIndex, 0);
|
||||
d.readBlob(54, &m_geometryBytes);
|
||||
d.readBool(55, &m_hidden, false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user