1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04:00

AM Demodulator: horizontal leap mode: use a fixed amortizing factor (1/2) to correct horizontal sync

This commit is contained in:
f4exb 2017-04-04 08:42:01 +02:00
parent b2be9f6a0d
commit ee548d2214

View File

@ -490,7 +490,7 @@ private:
if (m_objRunning.m_blnHSync && (m_intLineIndex == 0)) if (m_objRunning.m_blnHSync && (m_intLineIndex == 0))
{ {
//qDebug("HCorr: %d", m_intAvgColIndex); //qDebug("HCorr: %d", m_intAvgColIndex);
m_intColIndex = m_intNumberSamplePerTop + m_intNumberSamplePerLine - m_intAvgColIndex; m_intColIndex = m_intNumberSamplePerTop + (m_intNumberSamplePerLine - m_intAvgColIndex)/2; // amortizing factor 1/2
} }
else else
{ {