1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

AM demod: eliminate DC from demodulated output. Set volume AGC length to 50ms

This commit is contained in:
f4exb 2017-08-20 00:56:50 +02:00
parent 79f53275de
commit 1d32eb0217
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ AMDemod::AMDemod() :
m_magsqPeak(0.0f),
m_magsqCount(0),
m_movingAverage(40, 0),
m_volumeAGC(4800, 1.0),
m_volumeAGC(2400, 1.0),
m_audioFifo(4, 48000),
m_settingsMutex(QMutex::Recursive)
{

View File

@ -188,7 +188,7 @@ private:
{
Real demod = sqrt(magsq);
m_volumeAGC.feed(demod);
demod /= m_volumeAGC.getValue();
demod = (demod - m_volumeAGC.getValue()) / m_volumeAGC.getValue();
if (m_running.m_bandpassEnable)
{

View File

@ -7,7 +7,7 @@
const PluginDescriptor AMDemodPlugin::m_pluginDescriptor = {
QString("AM Demodulator"),
QString("3.5.0"),
QString("3.6.0"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,