new VVT trigger shape? 4-1 Toyota #1847

This commit is contained in:
Andrey 2022-03-23 19:25:13 -04:00
parent b590afad7f
commit 89054c3a31
3 changed files with 20 additions and 0 deletions

View File

@ -537,6 +537,9 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat
break;
case TT_VVT_TOYOTA_4_1:
initializeToyota4_1(this);
break;
case TT_VVT_MITSUBISHI_6G75:
case TT_NISSAN_QR25:
initializeNissanQR25crank(this);

View File

@ -121,3 +121,19 @@ void initialize2jzGE3_34_simulation_shape(TriggerWaveform *s) {
s->shapeWithoutTdc = true;
s->isSynchronizationNeeded = false;
}
void initializeToyota4_1(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useRiseEdge = false;
int w = 10;
s->addEvent360(180 - w, T_PRIMARY, TV_RISE);
s->addEvent360(180, T_PRIMARY, TV_FALL);
s->addEvent360(270 - w, T_PRIMARY, TV_RISE);
s->addEvent360(270, T_PRIMARY, TV_FALL);
s->addEvent360(360 - w, T_PRIMARY, TV_RISE);
s->addEvent360(360, T_PRIMARY, TV_FALL);
}

View File

@ -13,3 +13,4 @@ void initialize2jzGE1_12(TriggerWaveform *s);
// TT_2JZ_3_34
void initialize2jzGE3_34_simulation_shape(TriggerWaveform *s);
void initializeToyota4_1(TriggerWaveform *s);