mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 19:28:47 -05:00
SSB demod: set AGC target to -20dB in power
This commit is contained in:
parent
a815507f77
commit
6df03cd147
@ -182,7 +182,7 @@ void SSBDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
|
||||
m_sum.imag(0.0);
|
||||
}
|
||||
|
||||
double agcVal = m_agcActive ? m_agc.feedAndGetValue(sideband[i]) : 1.0;
|
||||
double agcVal = m_agcActive ? m_agc.feedAndGetValue(sideband[i]) : 10.0; // 10.0 for 3276.8, 1.0 for 327.68
|
||||
m_audioActive = agcVal != 0.0;
|
||||
|
||||
if (m_audioMute)
|
||||
@ -307,7 +307,8 @@ bool SSBDemod::handleMessage(const Message& cmd)
|
||||
DSBFilter->create_dsb_filter((2.0f * m_Bandwidth) / (float) m_audioSampleRate);
|
||||
|
||||
m_volume = cfg.getVolume();
|
||||
m_volume *= 2.0;
|
||||
//m_volume *= 2.0; // for 327.68
|
||||
m_volume /= 4.0; // for 3276.8
|
||||
|
||||
m_spanLog2 = cfg.getSpanLog2();
|
||||
m_audioBinaual = cfg.getAudioBinaural();
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "util/message.h"
|
||||
|
||||
#define ssbFftLen 1024
|
||||
#define agcTarget 327.68 // -20 dB amplitude => -40 dB power: center of normal signal
|
||||
#define agcTarget 3276.8 // -10 dB amplitude => -20 dB power: center of normal signal
|
||||
|
||||
class SSBDemod : public BasebandSampleSink {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user