Minor changes to the sync monitoring on dual wheel

This commit is contained in:
Josh Stewart 2020-01-21 10:33:32 +11:00
parent 9e0053e958
commit 8859611a7e
1 changed files with 5 additions and 1 deletions

View File

@ -577,11 +577,15 @@ void triggerSec_DualWheel()
} }
else else
{ {
if (toothCurrentCount != configPage4.triggerTeeth) { currentStatus.syncLossCounter++; } //Indicates likely sync loss if ( (toothCurrentCount != configPage4.triggerTeeth) && (currentStatus.startRevolutions > 2)) { currentStatus.syncLossCounter++; } //Indicates likely sync loss.
if (configPage4.useResync == 1) { toothCurrentCount = configPage4.triggerTeeth; } if (configPage4.useResync == 1) { toothCurrentCount = configPage4.triggerTeeth; }
} }
revolutionOne = 1; //Sequential revolution reset revolutionOne = 1; //Sequential revolution reset
}
else
{
triggerSecFilterTime = revolutionTime >> 1; //Set filter at 25% of the current cam speed. This needs to be performed here to prevent a situation where the RPM and triggerSecFilterTime get out of alignment and curGap2 never exceeds the filter value
} //Trigger filter } //Trigger filter
} }