TT_VVT_MAZDA_MYSTERY

This commit is contained in:
Andrey 2022-08-28 22:42:53 -04:00
parent 3024a61ab5
commit 219a190fbc
3 changed files with 37 additions and 0 deletions

View File

@ -196,3 +196,35 @@ void initializeMazdaMiataVVtCamShape(TriggerWaveform *s) {
s->addEvent720(700, T_PRIMARY, TV_FALL);
s->addEvent720(720, T_PRIMARY, TV_RISE);
}
// https://rusefi.com/forum/viewtopic.php?f=17&t=2417
// Mazda Skyactiv
void initializeMazdaMysteryCamShape(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
// wide
s->addEvent360(50, T_PRIMARY, TV_RISE);
s->addEvent360(70, T_PRIMARY, TV_FALL);
// narrow
s->addEvent360(80, T_PRIMARY, TV_RISE);
s->addEvent360(90, T_PRIMARY, TV_FALL);
// wide
s->addEvent360(140, T_PRIMARY, TV_RISE);
s->addEvent360(160, T_PRIMARY, TV_FALL);
// narrow
s->addEvent360(170, T_PRIMARY, TV_RISE);
s->addEvent360(180, T_PRIMARY, TV_FALL);
// wide
s->addEvent360(250, T_PRIMARY, TV_RISE);
s->addEvent360(270, T_PRIMARY, TV_FALL);
// wide
s->addEvent360(340, T_PRIMARY, TV_RISE);
s->addEvent360(360, T_PRIMARY, TV_FALL);
s->setTriggerSynchronizationGap(0.43);
s->setSecondTriggerSynchronizationGap(0.78);
s->setThirdTriggerSynchronizationGap(1.12); // 3rd gap is not required but let's have it for some resiliency
}

View File

@ -23,3 +23,5 @@ void configureMazdaProtegeLx(TriggerWaveform *s);
* same decoder is used for VVT processing
*/
void initializeMazdaMiataVVtCamShape(TriggerWaveform *s);
void initializeMazdaMysteryCamShape(TriggerWaveform *s);

View File

@ -688,6 +688,9 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e triggerOperatio
break;
case TT_VVT_MAZDA_MYSTERY:
initializeMazdaMysteryCamShape(this);
break;
case UNUSED_21:
case UNUSED_34:
case TT_1_16: