1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04:00

NFM demod: fixed volume and scaling of magnitude squared

This commit is contained in:
f4exb 2015-10-05 09:17:44 +02:00
parent 453e53541b
commit 821e4e9ec8
2 changed files with 2 additions and 2 deletions

View File

@ -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 * 4; // denominator = bandpass filter number of taps
sample = demod * 10;
}
}
else

View File

@ -64,7 +64,7 @@ public:
m_ctcssIndexSelected = selectedCtcssIndex;
}
Real getMagSq() { return m_AGC.getAverage(); }
Real getMagSq() { return m_AGC.getAverage() / (1<<7); }
private:
class MsgConfigureNFMDemod : public Message {