mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 12:22:00 -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_channelMarker(this),
|
||||||
m_basicSettingsShown(false),
|
m_basicSettingsShown(false),
|
||||||
m_doApplySettings(true),
|
m_doApplySettings(true),
|
||||||
m_squelchOpen(false),
|
m_squelchOpen(false)
|
||||||
m_channelPowerDbAvg(20,0)
|
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
@ -407,10 +406,6 @@ void NFMDemodGUI::tick()
|
|||||||
m_powerMeterTickCount = 0;
|
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();
|
bool squelchOpen = m_nfmDemod->getSquelchOpen();
|
||||||
|
|
||||||
if (squelchOpen != m_squelchOpen)
|
if (squelchOpen != m_squelchOpen)
|
||||||
|
@ -70,7 +70,6 @@ private:
|
|||||||
bool m_audioMute;
|
bool m_audioMute;
|
||||||
bool m_squelchOpen;
|
bool m_squelchOpen;
|
||||||
int m_powerMeterTickCount;
|
int m_powerMeterTickCount;
|
||||||
MovingAverage<Real> m_channelPowerDbAvg;
|
|
||||||
|
|
||||||
static const int m_rfBW[];
|
static const int m_rfBW[];
|
||||||
static const int m_fmDev[];
|
static const int m_fmDev[];
|
||||||
|
Loading…
Reference in New Issue
Block a user