From 0b2a1a5b78db3195ed6e9435c02bc94775834aa2 Mon Sep 17 00:00:00 2001 From: Bruno Bousquet Date: Sat, 14 Dec 2019 19:06:50 -0500 Subject: [PATCH 1/2] Sequential injection cannot be simultaneous --- speeduino/init.ino | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/speeduino/init.ino b/speeduino/init.ino index 7cc48e6c..9966ebe5 100644 --- a/speeduino/init.ino +++ b/speeduino/init.ino @@ -545,11 +545,23 @@ 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; + } } else if (configPage2.injLayout == INJ_SEQUENTIAL) { @@ -562,15 +574,6 @@ 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; - } channel1InjEnabled = true; channel2InjEnabled = true; From b35e07b86b00e82c73a25979cae2f7947ed9af93 Mon Sep 17 00:00:00 2001 From: Bruno Bousquet Date: Sat, 14 Dec 2019 19:13:13 -0500 Subject: [PATCH 2/2] double req_fuel for sequential --- speeduino/init.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/speeduino/init.ino b/speeduino/init.ino index 9966ebe5..0d25b4c6 100644 --- a/speeduino/init.ino +++ b/speeduino/init.ino @@ -561,6 +561,8 @@ void initialiseAll() channel3InjDegrees = 144; channel4InjDegrees = 216; channel5InjDegrees = 288; + + //Divide by currentStatus.nSquirts ? } } else if (configPage2.injLayout == INJ_SEQUENTIAL) @@ -573,6 +575,7 @@ void initialiseAll() CRANK_ANGLE_MAX_INJ = 720; currentStatus.nSquirts = 1; + req_fuel_uS = req_fuel_uS * 2; } channel1InjEnabled = true;