mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
ATV Demod: use black level limit to reset line sync counter
This commit is contained in:
parent
284c56188c
commit
e4d62eff4f
@ -457,16 +457,16 @@ void ATVDemod::demod(Complex& c)
|
||||
if (m_intColIndex >= intSynchroTimeSamples)
|
||||
{
|
||||
//Floor Detection 0
|
||||
if (fltVal <= m_objRunning.m_fltVoltLevelSynchroTop)
|
||||
if (fltVal < m_objRunning.m_fltVoltLevelSynchroTop)
|
||||
{
|
||||
m_intSynchroPoints++;
|
||||
}
|
||||
else
|
||||
else if (fltVal > m_objRunning.m_fltVoltLevelSynchroBlack)
|
||||
{
|
||||
m_intSynchroPoints = 0;
|
||||
}
|
||||
|
||||
if (m_intSynchroPoints >= m_intNumberSamplePerTop)
|
||||
if (m_intSynchroPoints > m_intNumberSamplePerTop)
|
||||
{
|
||||
m_blnSynchroDetected = true;
|
||||
m_intSynchroPoints = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user