Staged injection support; use two sets of injectors on the same engine #5247

This commit is contained in:
Andrey 2024-01-07 20:30:53 -05:00 committed by rusefillc
parent 37727d4278
commit 76623cec81
2 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,8 @@ public:
// Per-injection fuel mass, including TPS accel enrich
float injectionMass[MAX_CYLINDER_COUNT] = {0};
float injectionStage2Fraction = 0;
Timer crankingTimer;
WarningCodeState warnings;
@ -76,6 +78,7 @@ public:
* @see getInjectionDuration()
*/
floatms_t injectionDuration = 0;
floatms_t injectionDurationStage2 = 0;
angle_t injectionOffset = 0;

View File

@ -62,3 +62,7 @@ public:
using interface_t = IInjectorModel; // Mock interface
};
// TODO: differentiate primary vs. secondary injector configuration
struct InjectorModelPrimary : public InjectorModel { };
struct InjectorModelSecondary : public InjectorModel { };