1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

SSB demod: set AGC target to -20dB in power

This commit is contained in:
f4exb 2017-07-26 14:34:49 +02:00
parent a815507f77
commit 6df03cd147
2 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -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: