mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-01 09:16:39 -04:00
SSB demod: corrected processing without AGC and changed some defaults
This commit is contained in:
parent
552af0b250
commit
696ec6caeb
@ -234,7 +234,7 @@ void SSBDemod::processOneSample(Complex &ci)
|
|||||||
m_sum.imag(0.0);
|
m_sum.imag(0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
float agcVal = m_agcActive ? m_agc.feedAndGetValue(sideband[i]) : 10.0; // 10.0 for 3276.8, 1.0 for 327.68
|
float agcVal = m_agcActive ? m_agc.feedAndGetValue(sideband[i]) : 0.1;
|
||||||
fftfilt::cmplx& delayedSample = m_squelchDelayLine.readBack(m_agc.getStepDownDelay());
|
fftfilt::cmplx& delayedSample = m_squelchDelayLine.readBack(m_agc.getStepDownDelay());
|
||||||
m_audioActive = delayedSample.real() != 0.0;
|
m_audioActive = delayedSample.real() != 0.0;
|
||||||
m_squelchDelayLine.write(sideband[i]*agcVal);
|
m_squelchDelayLine.write(sideband[i]*agcVal);
|
||||||
@ -246,7 +246,7 @@ void SSBDemod::processOneSample(Complex &ci)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fftfilt::cmplx z = delayedSample * m_agc.getStepValue();
|
fftfilt::cmplx z = m_agcActive ? delayedSample * m_agc.getStepValue() : delayedSample;
|
||||||
|
|
||||||
if (m_audioBinaual)
|
if (m_audioBinaual)
|
||||||
{
|
{
|
||||||
|
@ -45,12 +45,12 @@ void SSBDemodSettings::resetToDefaults()
|
|||||||
m_audioMute = false;
|
m_audioMute = false;
|
||||||
m_agc = false;
|
m_agc = false;
|
||||||
m_agcClamping = false;
|
m_agcClamping = false;
|
||||||
m_agcPowerThreshold = -40;
|
m_agcPowerThreshold = -100;
|
||||||
m_agcThresholdGate = 4;
|
m_agcThresholdGate = 4;
|
||||||
m_agcTimeLog2 = 7;
|
m_agcTimeLog2 = 7;
|
||||||
m_rfBandwidth = 3000;
|
m_rfBandwidth = 3000;
|
||||||
m_lowCutoff = 300;
|
m_lowCutoff = 300;
|
||||||
m_volume = 3.0;
|
m_volume = 1.0;
|
||||||
m_spanLog2 = 3;
|
m_spanLog2 = 3;
|
||||||
m_inputFrequencyOffset = 0;
|
m_inputFrequencyOffset = 0;
|
||||||
m_rgbColor = QColor(0, 255, 0).rgb();
|
m_rgbColor = QColor(0, 255, 0).rgb();
|
||||||
|
Loading…
Reference in New Issue
Block a user