minor trigger refactoring

This commit is contained in:
rusefillc 2022-11-05 22:30:08 -04:00
parent 4a26b0973d
commit fd86dc2b0f
3 changed files with 5 additions and 2 deletions

View File

@ -411,7 +411,7 @@ void prepareOutputSignals() {
}
#endif /* EFI_UNIT_TEST */
engine->triggerCentral.triggerShape.prepareShape(engine->triggerCentral.triggerFormDetails);
engine->triggerCentral.prepareTriggerShape();
// Fuel schedule may now be completely wrong, force a reset
engine->injectionEvents.invalidate();

View File

@ -59,7 +59,6 @@ public:
void setAngle(angle_t angle);
};
class Engine;
class TriggerDecoderBase;
class TriggerFormDetails;
class TriggerConfiguration;

View File

@ -54,6 +54,10 @@ public:
void validateCamVvtCounters();
void updateWaveform();
void prepareTriggerShape() {
triggerShape.prepareShape(triggerFormDetails);
}
// this is useful at least for real hardware integration testing - maybe a proper solution would be to simply
// GND input pins instead of leaving them floating
bool hwTriggerInputEnabled = true;