mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-04 10:38:45 -04:00
NFM demod: fixed AF squelch initialization
This commit is contained in:
parent
375f327004
commit
a39b102f89
@ -37,7 +37,7 @@ AFSquelch::AFSquelch() :
|
||||
m_u0 = new double[m_nTones];
|
||||
m_u1 = new double[m_nTones];
|
||||
m_power = new double[m_nTones];
|
||||
m_movingAverages.resize(m_nTones, MovingAverage<double>(m_nbAvg, 0.0));
|
||||
m_movingAverages.resize(m_nTones, MovingAverage<double>(m_nbAvg, 1.0f));
|
||||
|
||||
m_toneSet[0] = 2000.0;
|
||||
m_toneSet[1] = 10000.0;
|
||||
@ -45,7 +45,7 @@ AFSquelch::AFSquelch() :
|
||||
|
||||
AFSquelch::AFSquelch(unsigned int nbTones, const Real *tones) :
|
||||
m_N(0),
|
||||
m_nbAvg(0),
|
||||
m_nbAvg(128),
|
||||
m_sampleRate(0),
|
||||
m_samplesProcessed(0),
|
||||
m_maxPowerIndex(0),
|
||||
@ -63,6 +63,7 @@ AFSquelch::AFSquelch(unsigned int nbTones, const Real *tones) :
|
||||
m_u0 = new double[m_nTones];
|
||||
m_u1 = new double[m_nTones];
|
||||
m_power = new double[m_nTones];
|
||||
m_movingAverages.resize(m_nTones, MovingAverage<double>(m_nbAvg, 1.0f));
|
||||
|
||||
for (int j = 0; j < m_nTones; ++j)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user