Fixed NFM squelch sensitivity

This commit is contained in:
f4exb 2015-09-12 01:21:14 +02:00
parent 26162c49a1
commit 76d52e75fc
1 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ void NFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
Real qp = ci.imag() - m_m2Sample.imag();
Real h1 = m_m1Sample.real() * qp;
Real h2 = m_m1Sample.imag() * ip;
Real demod = (h1 - h2) * 16; // 10000 (multiply by 2^16 after demod)
Real demod = (h1 - h2) * 2; // 10000 (multiply by 2^16 after demod)
m_m2Sample = m_m1Sample;
m_m1Sample = ci;
@ -218,7 +218,7 @@ void NFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
{
demod = m_bandpass.filter(demod);
demod *= m_running.m_volume;
sample = demod * ((1<<16)/301) * m_AGC.getDelayedValue(); // denominator = bandpass filter number of taps
sample = demod * ((1<<19)/301) * m_AGC.getDelayedValue(); // denominator = bandpass filter number of taps
}
m_AGC.openedSquelch();