mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 04:11:48 -05:00
NFM demod: cleanup channel power average engine and old code that used it
This commit is contained in:
parent
387cd2eaba
commit
9cadb3a44f
@ -260,8 +260,7 @@ NFMDemodGUI::NFMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidg
|
||||
m_channelMarker(this),
|
||||
m_basicSettingsShown(false),
|
||||
m_doApplySettings(true),
|
||||
m_squelchOpen(false),
|
||||
m_channelPowerDbAvg(20,0)
|
||||
m_squelchOpen(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
@ -407,10 +406,6 @@ void NFMDemodGUI::tick()
|
||||
m_powerMeterTickCount = 0;
|
||||
}
|
||||
|
||||
// Real powDb = CalcDb::dbPower(m_nfmDemod->getMag()) * 2;
|
||||
// m_channelPowerDbAvg.feed(powDb);
|
||||
// ui->channelPower->setText(QString::number(m_channelPowerDbAvg.average(), 'f', 1));
|
||||
|
||||
bool squelchOpen = m_nfmDemod->getSquelchOpen();
|
||||
|
||||
if (squelchOpen != m_squelchOpen)
|
||||
|
@ -70,7 +70,6 @@ private:
|
||||
bool m_audioMute;
|
||||
bool m_squelchOpen;
|
||||
int m_powerMeterTickCount;
|
||||
MovingAverage<Real> m_channelPowerDbAvg;
|
||||
|
||||
static const int m_rfBW[];
|
||||
static const int m_fmDev[];
|
||||
|
Loading…
Reference in New Issue
Block a user