mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-29 13:32:26 -04:00
Channel Analyzer: set rational downsampler range low limit to 0.501 times the input sample rate
This commit is contained in:
parent
f2e3059099
commit
720e68c094
@ -101,10 +101,12 @@ void ChannelAnalyzerGUI::displaySettings()
|
|||||||
setTitleColor(m_settings.m_rgbColor);
|
setTitleColor(m_settings.m_rgbColor);
|
||||||
setWindowTitle(m_channelMarker.getTitle());
|
setWindowTitle(m_channelMarker.getTitle());
|
||||||
|
|
||||||
|
ui->channelSampleRate->setValueRange(7, 0.501*m_channelAnalyzer->getInputSampleRate(), m_channelAnalyzer->getInputSampleRate());
|
||||||
|
ui->channelSampleRate->setValue(m_settings.m_downSampleRate);
|
||||||
|
|
||||||
blockApplySettings(true);
|
blockApplySettings(true);
|
||||||
|
|
||||||
ui->useRationalDownsampler->setChecked(m_settings.m_downSample);
|
ui->useRationalDownsampler->setChecked(m_settings.m_downSample);
|
||||||
ui->channelSampleRate->setValue(m_settings.m_downSampleRate);
|
|
||||||
setNewFinalRate();
|
setNewFinalRate();
|
||||||
if (m_settings.m_ssb) {
|
if (m_settings.m_ssb) {
|
||||||
ui->BWLabel->setText("LP");
|
ui->BWLabel->setText("LP");
|
||||||
@ -187,7 +189,7 @@ bool ChannelAnalyzerGUI::handleMessage(const Message& message)
|
|||||||
if (ChannelAnalyzer::MsgReportChannelSampleRateChanged::match(message))
|
if (ChannelAnalyzer::MsgReportChannelSampleRateChanged::match(message))
|
||||||
{
|
{
|
||||||
qDebug() << "ChannelAnalyzerGUI::handleMessage: MsgReportChannelSampleRateChanged";
|
qDebug() << "ChannelAnalyzerGUI::handleMessage: MsgReportChannelSampleRateChanged";
|
||||||
ui->channelSampleRate->setValueRange(7, 2000U, m_channelAnalyzer->getInputSampleRate());
|
ui->channelSampleRate->setValueRange(7, 0.501*m_channelAnalyzer->getInputSampleRate(), m_channelAnalyzer->getInputSampleRate());
|
||||||
ui->channelSampleRate->setValue(m_settings.m_downSampleRate);
|
ui->channelSampleRate->setValue(m_settings.m_downSampleRate);
|
||||||
setNewFinalRate();
|
setNewFinalRate();
|
||||||
|
|
||||||
@ -401,7 +403,7 @@ ChannelAnalyzerGUI::ChannelAnalyzerGUI(PluginAPI* pluginAPI, DeviceUISet *device
|
|||||||
ui->deltaFrequency->setValueRange(false, 7, -9999999, 9999999);
|
ui->deltaFrequency->setValueRange(false, 7, -9999999, 9999999);
|
||||||
|
|
||||||
ui->channelSampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
ui->channelSampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||||
ui->channelSampleRate->setValueRange(7, 2000U, 9999999U);
|
ui->channelSampleRate->setValueRange(7, 0.501*m_rate, m_rate);
|
||||||
|
|
||||||
ui->glSpectrum->setCenterFrequency(m_rate/2);
|
ui->glSpectrum->setCenterFrequency(m_rate/2);
|
||||||
ui->glSpectrum->setSampleRate(m_rate);
|
ui->glSpectrum->setSampleRate(m_rate);
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
|
const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
|
||||||
QString("Channel Analyzer"),
|
QString("Channel Analyzer"),
|
||||||
QString("4.3.0"),
|
QString("4.3.2"),
|
||||||
QString("(c) Edouard Griffiths, F4EXB"),
|
QString("(c) Edouard Griffiths, F4EXB"),
|
||||||
QString("https://github.com/f4exb/sdrangel"),
|
QString("https://github.com/f4exb/sdrangel"),
|
||||||
true,
|
true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user