mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-27 02:09:14 -05:00
NFM demod: fixed volume and scaling of magnitude squared
This commit is contained in:
parent
453e53541b
commit
821e4e9ec8
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user