bugfix
This commit is contained in:
parent
bc8abaa065
commit
71ca679ec5
|
@ -64,7 +64,7 @@ EngineTestHelper::EngineTestHelper(engine_type_e engineType) : engine (&persiste
|
|||
engine->updateSlowSensors(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
prepareTimingMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
TRIGGER_SHAPE(initializeTriggerShape(NULL, false PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
TRIGGER_SHAPE(initializeTriggerShape(NULL, engineConfiguration->useOnlyRisingEdgeForTrigger PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
engine->triggerCentral.addEventListener(rpmShaftPositionCallback, "rpm reporter", engine);
|
||||
engine->triggerCentral.addEventListener(mainTriggerCallback, "main loop", engine);
|
||||
resetTriggerConfigChangedForUnitTest();
|
||||
|
@ -120,7 +120,8 @@ void EngineTestHelper::applyTriggerShape() {
|
|||
Engine *engine = &this->engine;
|
||||
EXPAND_Engine
|
||||
|
||||
TRIGGER_SHAPE(initializeTriggerShape(NULL, false PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
|
||||
TRIGGER_SHAPE(initializeTriggerShape(NULL, engineConfiguration->useOnlyRisingEdgeForTrigger PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
|
||||
incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ void testAngleResolver(void) {
|
|||
engineConfiguration->globalTriggerAngleOffset = 175;
|
||||
|
||||
TriggerShape * ts = &engine->triggerCentral.triggerShape;
|
||||
ts->initializeTriggerShape(NULL, false PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
ts->initializeTriggerShape(NULL, engineConfiguration->useOnlyRisingEdgeForTrigger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
assertEqualsM("index 2", 52.76, ts->eventAngles[3]); // this angle is relation to synch point
|
||||
assertEqualsM("time 2", 0.3233, ts->wave.getSwitchTime(2));
|
||||
|
|
Loading…
Reference in New Issue