only: Suzuki K6A (NON VVTI Trigger) #6490

This commit is contained in:
Andrey 2024-05-09 20:35:22 -04:00
parent 9f2a7e98fc
commit a6792cf1f3
2 changed files with 27 additions and 0 deletions

View File

@ -443,6 +443,9 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e triggerOperatio
break;
case trigger_type_e::TT_SUZUKI_K6A:
initializeSuzukiK6A(this);
break;
case trigger_type_e::TT_SUZUKI_G13B:
initializeSuzukiG13B(this);
break;

View File

@ -35,5 +35,29 @@ void initializeSuzukiG13B(TriggerWaveform *s) {
}
void initializeSuzukiK6A(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, SyncEdge::RiseOnly);
float w = 5;
int secondTooth = 15;
// a bit lame: we start with falling front of first tooth
s->addEvent360(5, TriggerValue::FALL);
s->addToothRiseFall(secondTooth, w);
s->addToothRiseFall(43, w);
s->addToothRiseFall(120, w);
s->addToothRiseFall(120 + secondTooth, w);
s->addToothRiseFall(158, w);
s->addToothRiseFall(158 + secondTooth, w);
s->addToothRiseFall(240, w);
s->addToothRiseFall(240 + secondTooth, w);
s->addToothRiseFall(283, w);
// a bit lame: we end with rising front of first tooth
s->addEvent360(360, TriggerValue::RISE);
s->setTriggerSynchronizationGap(4.47);
s->setSecondTriggerSynchronizationGap(0.65);
}