1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-13 11:51:47 -05:00

NFM demod: cleanup channel power average engine and old code that used it

This commit is contained in:
f4exb 2016-12-05 02:23:56 +01:00
parent 387cd2eaba
commit 9cadb3a44f
2 changed files with 1 additions and 7 deletions

View File

@ -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)

View File

@ -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[];