only:minor encapsulation
This commit is contained in:
parent
701c54713e
commit
086fa81a3f
|
@ -21,10 +21,14 @@ void turnInjectionPinHigh(InjectionEvent *event) {
|
|||
|
||||
FuelSchedule::FuelSchedule() {
|
||||
for (int cylinderIndex = 0; cylinderIndex < MAX_CYLINDER_COUNT; cylinderIndex++) {
|
||||
elements[cylinderIndex].ownIndex = cylinderIndex;
|
||||
elements[cylinderIndex].setIndex(cylinderIndex);
|
||||
}
|
||||
}
|
||||
|
||||
const WallFuel& InjectionEvent::getWallFuel() const {
|
||||
return wallFuel;
|
||||
}
|
||||
|
||||
void FuelSchedule::invalidate() {
|
||||
isReady = false;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,12 @@ public:
|
|||
// Call this every decoded trigger tooth. It will schedule any relevant events for this injector.
|
||||
void onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase, float nextPhase);
|
||||
|
||||
const WallFuel& getWallFuel() const;
|
||||
|
||||
void setIndex(uint8_t index) {
|
||||
ownIndex = index;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a performance optimization for IM_SIMULTANEOUS fuel strategy.
|
||||
* It's more efficient to handle all injectors together if that's the case
|
||||
|
|
Loading…
Reference in New Issue