From 9cadb3a44f357de06e2ea57d27c6d0a25a84d538 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 5 Dec 2016 02:23:56 +0100 Subject: [PATCH] NFM demod: cleanup channel power average engine and old code that used it --- plugins/channelrx/demodnfm/nfmdemodgui.cpp | 7 +------ plugins/channelrx/demodnfm/nfmdemodgui.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/channelrx/demodnfm/nfmdemodgui.cpp b/plugins/channelrx/demodnfm/nfmdemodgui.cpp index 08996b2b5..7f03d50ed 100644 --- a/plugins/channelrx/demodnfm/nfmdemodgui.cpp +++ b/plugins/channelrx/demodnfm/nfmdemodgui.cpp @@ -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) diff --git a/plugins/channelrx/demodnfm/nfmdemodgui.h b/plugins/channelrx/demodnfm/nfmdemodgui.h index eca7dc176..b302f3103 100644 --- a/plugins/channelrx/demodnfm/nfmdemodgui.h +++ b/plugins/channelrx/demodnfm/nfmdemodgui.h @@ -70,7 +70,6 @@ private: bool m_audioMute; bool m_squelchOpen; int m_powerMeterTickCount; - MovingAverage m_channelPowerDbAvg; static const int m_rfBW[]; static const int m_fmDev[];