This commit is contained in:
rusefi 2017-11-06 19:00:30 -05:00
parent 2a27c706ea
commit 43f11c4425
5 changed files with 13 additions and 2 deletions

View File

@ -445,6 +445,8 @@ case IM_SEQUENTIAL:
return "IM_SEQUENTIAL";
case IM_SIMULTANEOUS:
return "IM_SIMULTANEOUS";
case IM_SINGLE_POINT:
return "IM_SINGLE_POINT";
}
return NULL;
}

View File

@ -109,6 +109,7 @@ int getNumberOfInjections(injection_mode_e mode DECLARE_ENGINE_PARAMETER_SUFFIX)
case IM_SIMULTANEOUS:
return engineConfiguration->specs.cylindersCount;
case IM_SEQUENTIAL:
case IM_SINGLE_POINT:
return 1;
case IM_BATCH:
return 2;

View File

@ -423,6 +423,9 @@ typedef enum {
* @see getNumberOfInjections
*/
typedef enum {
/**
* each cylinder has it's own injector but they all works in parallel
*/
IM_SIMULTANEOUS = 0,
/**
* each cylinder has it's own injector, each injector is wired separately
@ -432,6 +435,11 @@ typedef enum {
* each cylinder has it's own injector but these injectors work in pairs. Injectors could be wired in pairs or separately.
*/
IM_BATCH = 2,
/**
* only one injector located in throttle body
*/
IM_SINGLE_POINT = 3,
Force_4b_injection_mode = ENUM_32_BITS,
} injection_mode_e;

View File

@ -142,7 +142,7 @@ bool FuelSchedule::addFuelEventsForCylinder(int i DECLARE_ENGINE_PARAMETER_SUFF
injection_mode_e mode = engine->getCurrentInjectionMode(PASS_ENGINE_PARAMETER_SIGNATURE);
if (mode == IM_SIMULTANEOUS) {
if (mode == IM_SIMULTANEOUS || mode == IM_SINGLE_POINT) {
index = 0;
} else if (mode == IM_SEQUENTIAL) {
index = getCylinderId(i PASS_ENGINE_PARAMETER_SUFFIX) - 1;

View File

@ -295,7 +295,7 @@ custom engine_load_mode_e 4 bits, U32, @OFFSET@, [0:1], @@engine_load_mode_e_enu
engine_load_mode_e fuelAlgorithm;+This setting controls which fuel quantity control algorithm is used.\nset algorithm X
custom injection_mode_e 4 bits, U32, @OFFSET@, [0:1], "Simultaneous", "Sequential", "Batch", "INVALID"
custom injection_mode_e 4 bits, U32, @OFFSET@, [0:1], "Simultaneous", "Sequential", "Batch", "Single Point"
injection_mode_e crankingInjectionMode;
injection_mode_e injectionMode;+'batched' means two injectors are wired together\nset injection_mode X
angle_t extraInjectionOffset;+this is about deciding when the injector starts it's squirt\nSee also injectionPhase map\ntodo: do we need even need this since we have the map anyway?;"deg", 1, 0.0, -720, 720, 2