- agc enabled on reset

- use R2_cma as AGC reference

git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@1006 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-16 17:17:37 +00:00
parent 16d92ab854
commit 13c3f23f5e
+2 -1
View File
@@ -151,6 +151,7 @@ void Receiver::initDefaultParams()
m_params.cmaMode = cma_mode_training_enabled;
m_params.dfeMode = dfe_mode_training_enabled;
m_params.dfeAutoUpdateEnable = true;
m_params.agc_mode = agc_mode_enabled;
m_params.eqMuCma = CMA_MU;
m_params.eqMuDfe = DFE_MU;
@@ -462,7 +463,7 @@ void Receiver::processBaseband(CVec const &iq, uint32_t len)
{
// AGC Blind process samples
ComplexScalar iq_agc = toComplexScalar(CpxScaleRealS(toCpx(iq[n]), AGC_GetWeight(&agcBlind)));
AGC_Process(&agcBlind, CpxMagS(toCpx(iq_agc)), m_params.agcMu[m_params.agcMu_index], 1.0);
AGC_Process(&agcBlind, CpxMagS(toCpx(iq_agc)), m_params.agcMu[m_params.agcMu_index], m_pSymMapper->R2_cma);
next_buf_in.write(&iq_agc, 1);
}
}