mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-03 17:35:23 -04:00
AM demod plugin: slow down channel power refresh rate
This commit is contained in:
parent
3536cfb816
commit
2d956df50f
@ -213,7 +213,8 @@ AMDemodGUI::AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget
|
|||||||
m_channelMarker(this),
|
m_channelMarker(this),
|
||||||
m_basicSettingsShown(false),
|
m_basicSettingsShown(false),
|
||||||
m_doApplySettings(true),
|
m_doApplySettings(true),
|
||||||
m_squelchOpen(false)
|
m_squelchOpen(false),
|
||||||
|
m_tickCount(0)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
@ -312,7 +313,9 @@ void AMDemodGUI::tick()
|
|||||||
(100.0f + powDbPeak) / 100.0f,
|
(100.0f + powDbPeak) / 100.0f,
|
||||||
nbMagsqSamples);
|
nbMagsqSamples);
|
||||||
|
|
||||||
|
if (m_tickCount % 4 == 0) {
|
||||||
ui->channelPower->setText(QString::number(powDbAvg, 'f', 1));
|
ui->channelPower->setText(QString::number(powDbAvg, 'f', 1));
|
||||||
|
}
|
||||||
|
|
||||||
bool squelchOpen = m_amDemod->getSquelchOpen();
|
bool squelchOpen = m_amDemod->getSquelchOpen();
|
||||||
|
|
||||||
@ -326,5 +329,7 @@ void AMDemodGUI::tick()
|
|||||||
ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_tickCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ private:
|
|||||||
DownChannelizer* m_channelizer;
|
DownChannelizer* m_channelizer;
|
||||||
AMDemod* m_amDemod;
|
AMDemod* m_amDemod;
|
||||||
bool m_squelchOpen;
|
bool m_squelchOpen;
|
||||||
|
uint32_t m_tickCount;
|
||||||
|
|
||||||
explicit AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
explicit AMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidget* parent = NULL);
|
||||||
virtual ~AMDemodGUI();
|
virtual ~AMDemodGUI();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user