mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
BFM demod: update spectrum setting with rate information upon channelizer change rate signal
This commit is contained in:
parent
205fee6837
commit
cdf51b99e9
@ -267,6 +267,7 @@ BFMDemodGUI::BFMDemodGUI(PluginAPI* pluginAPI, QWidget* parent) :
|
||||
m_bfmDemod = new BFMDemod(m_spectrumVis);
|
||||
m_channelizer = new Channelizer(m_bfmDemod);
|
||||
m_threadedChannelizer = new ThreadedSampleSink(m_channelizer, this);
|
||||
connect(m_channelizer, SIGNAL(inputSampleRateChanged()), this, SLOT(channelSampleRateChanged()));
|
||||
DSPEngine::instance()->addThreadedSink(m_threadedChannelizer);
|
||||
|
||||
ui->glSpectrum->setCenterFrequency(m_rate / 4);
|
||||
@ -363,12 +364,13 @@ void BFMDemodGUI::tick()
|
||||
}
|
||||
}
|
||||
|
||||
if ((m_bfmDemod) && (m_rate != m_bfmDemod->getSampleRate()))
|
||||
{
|
||||
//qDebug() << "Pilot lock: " << m_bfmDemod->getPilotLock() << ":" << m_bfmDemod->getPilotLevel(); TODO: update a GUI item with status
|
||||
}
|
||||
|
||||
void BFMDemodGUI::channelSampleRateChanged()
|
||||
{
|
||||
m_rate = m_bfmDemod->getSampleRate();
|
||||
ui->glSpectrum->setCenterFrequency(m_rate / 4);
|
||||
ui->glSpectrum->setSampleRate(m_rate / 2);
|
||||
}
|
||||
|
||||
//qDebug() << "Pilot lock: " << m_bfmDemod->getPilotLock() << ":" << m_bfmDemod->getPilotLevel(); TODO: update a GUI item with status
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,7 @@ public:
|
||||
|
||||
private slots:
|
||||
void viewChanged();
|
||||
void channelSampleRateChanged();
|
||||
void on_deltaFrequency_changed(quint64 value);
|
||||
void on_deltaMinus_toggled(bool minus);
|
||||
void on_rfBW_valueChanged(int value);
|
||||
|
Loading…
Reference in New Issue
Block a user