This commit is contained in:
Josh Stewart 2020-01-24 12:22:19 +11:00
commit cbc35346ba
1 changed files with 20 additions and 14 deletions

View File

@ -571,11 +571,25 @@ void initialiseAll()
//For alternatiing injection, the squirt occurs at different times for each channel
if( (configPage2.injLayout == INJ_SEMISEQUENTIAL) || (configPage2.injLayout == INJ_PAIRED) || (configPage2.strokes == TWO_STROKE) )
{
channel1InjDegrees = 0;
channel2InjDegrees = 72;
channel3InjDegrees = 144;
channel4InjDegrees = 216;
channel5InjDegrees = 288;
if (!configPage2.injTiming)
{
//For simultaneous, all squirts happen at the same time
channel1InjDegrees = 0;
channel2InjDegrees = 0;
channel3InjDegrees = 0;
channel4InjDegrees = 0;
channel5InjDegrees = 0;
}
else
{
channel1InjDegrees = 0;
channel2InjDegrees = 72;
channel3InjDegrees = 144;
channel4InjDegrees = 216;
channel5InjDegrees = 288;
//Divide by currentStatus.nSquirts ?
}
}
else if (configPage2.injLayout == INJ_SEQUENTIAL)
{
@ -587,15 +601,7 @@ void initialiseAll()
CRANK_ANGLE_MAX_INJ = 720;
currentStatus.nSquirts = 1;
}
if (!configPage2.injTiming)
{
//For simultaneous, all squirts happen at the same time
channel1InjDegrees = 0;
channel2InjDegrees = 0;
channel3InjDegrees = 0;
channel4InjDegrees = 0;
channel5InjDegrees = 0;
req_fuel_uS = req_fuel_uS * 2;
}
channel1InjEnabled = true;