RAM efficiency of VR crank trigger shapes #2182

This commit is contained in:
rusefillc 2021-01-04 00:26:05 -05:00
parent 428418f879
commit b1499d8a7f
3 changed files with 9 additions and 2 deletions

View File

@ -45,7 +45,9 @@ void configureTriTach(TriggerWaveform * s) {
addSkippedToothTriggerEvents(T_SECONDARY, s, totalTeethCount, /* skipped */ 0, toothWidth, offset, engineCycle,
1.5 * FOUR_STROKE_ENGINE_CYCLE / 135, NO_RIGHT_FILTER);
//1.5 * FOUR_STROKE_ENGINE_CYCLE / 135,
700,
NO_RIGHT_FILTER);
}

View File

@ -663,6 +663,9 @@ void TriggerWaveform::initializeTriggerWaveform(Logging *logger, operation_mode_
break;
case TT_TRI_TACH:
configureTriTach(this);
break;
case TT_GM_LS_24:
initGmLS24(this);
break;

View File

@ -129,7 +129,9 @@ void TriggerStimulatorHelper::assertSyncPositionAndSetDutyCycle(
}
int revolutionCounter = state.getTotalRevolutionCounter();
if (revolutionCounter != TEST_REVOLUTIONS + 1) {
warning(CUSTOM_OBD_TRIGGER_WAVEFORM, "sync failed/wrong gap parameters trigger=%s revolutionCounter=%d", getTrigger_type_e(triggerConfiguration.TriggerType), revolutionCounter);
warning(CUSTOM_OBD_TRIGGER_WAVEFORM, "sync failed/wrong gap parameters trigger=%s revolutionCounter=%d",
getTrigger_type_e(triggerConfiguration.TriggerType),
revolutionCounter);
shape.setShapeDefinitionError(true);
return;
}