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:
parent
79f53275de
commit
1d32eb0217
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user