From 76d52e75fc0973013f37382e42957c1934fd7f54 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 12 Sep 2015 01:21:14 +0200 Subject: [PATCH] Fixed NFM squelch sensitivity --- plugins/channel/nfm/nfmdemod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channel/nfm/nfmdemod.cpp b/plugins/channel/nfm/nfmdemod.cpp index d6a4f537a..5f90c0a9a 100644 --- a/plugins/channel/nfm/nfmdemod.cpp +++ b/plugins/channel/nfm/nfmdemod.cpp @@ -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();