Calculate correct pulse width limit when using sequential fuel

This commit is contained in:
Josh Stewart 2016-11-29 08:40:58 +11:00
parent 049f3081b1
commit 0fb9276c78
1 changed files with 1 additions and 0 deletions

View File

@ -1034,6 +1034,7 @@ void loop()
if( !BIT_CHECK(currentStatus.engine, BIT_ENGINE_CRANK) )
{
unsigned long pwLimit = percentage(configPage1.dutyLim, revolutionTime); //The pulsewidth limit is determined to be the duty cycle limit (Eg 85%) by the total time it takes to perform 1 revolution
if (CRANK_ANGLE_MAX_INJ == 720) { pwLimit = pwLimit * 2; }
if (currentStatus.PW1 > pwLimit) { currentStatus.PW1 = pwLimit; }
}