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

ChannelAnalyzerNG: standardized some debug messages

This commit is contained in:
f4exb 2017-02-25 11:52:57 +01:00
parent 46ebdefff0
commit fa3e39859a
3 changed files with 11 additions and 3 deletions

View File

@ -134,7 +134,7 @@ bool ChannelAnalyzerNG::handleMessage(const Message& cmd)
{ {
float bandwidth, lowCutoff; float bandwidth, lowCutoff;
qDebug() << "ChannelAnalyzerNG::handleMessage"; qDebug() << "ChannelAnalyzerNG::handleMessage: " << cmd.getIdentifier();
if (DownChannelizer::MsgChannelizerNotification::match(cmd)) if (DownChannelizer::MsgChannelizerNotification::match(cmd))
{ {
@ -185,7 +185,8 @@ bool ChannelAnalyzerNG::handleMessage(const Message& cmd)
m_settingsMutex.unlock(); m_settingsMutex.unlock();
qDebug() << " - MsgConfigureChannelAnalyzer: m_Bandwidth: " << m_Bandwidth qDebug() << "ChannelAnalyzerNG::handleMessage: MsgConfigureChannelAnalyzer:"
<< " m_Bandwidth: " << m_Bandwidth
<< " m_LowCutoff: " << m_LowCutoff << " m_LowCutoff: " << m_LowCutoff
<< " m_spanLog2: " << m_spanLog2 << " m_spanLog2: " << m_spanLog2
<< " m_ssb: " << m_ssb; << " m_ssb: " << m_ssb;

View File

@ -178,6 +178,11 @@ void ATVDemodGUI::viewChanged()
applySettings(); applySettings();
} }
void ATVDemodGUI::channelSampleRateChanged()
{
applySettings();
}
void ATVDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown) void ATVDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
{ {
} }
@ -215,6 +220,8 @@ ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceSourceAPI *objDeviceAPI,
this); this);
m_objDeviceAPI->addThreadedSink(m_objThreadedChannelizer); m_objDeviceAPI->addThreadedSink(m_objThreadedChannelizer);
connect(m_objChannelizer, SIGNAL(inputSampleRateChanged()), this, SLOT(channelSampleRateChanged()));
//m_objPluginAPI->addThreadedSink(m_objThreadedChannelizer); //m_objPluginAPI->addThreadedSink(m_objThreadedChannelizer);
//connect(&m_objPluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); // 50 ms //connect(&m_objPluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); // 50 ms
@ -293,7 +300,6 @@ void ATVDemodGUI::applySettings()
ui->vSync->isChecked()); ui->vSync->isChecked());
m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate()); m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate());
} }
} }

View File

@ -58,6 +58,7 @@ public:
private slots: private slots:
void viewChanged(); void viewChanged();
void channelSampleRateChanged();
void onWidgetRolled(QWidget* widget, bool rollDown); void onWidgetRolled(QWidget* widget, bool rollDown);
void onMenuDoubleClicked(); void onMenuDoubleClicked();
void tick(); void tick();