Update trigger_vw.cpp - skoda trigger wheel (#7023)

Trigger wheel was mirrored(small tooth on other end of gap).
Setting up falling edge trigger in TS gives the same tooth pattern as originally coded with different gap lengths, so only length and gap ratio had to be modified. Tested on working car.
This commit is contained in:
DobsonyT 2024-11-01 13:48:42 +01:00 committed by GitHub
parent cbc35e973e
commit 0251c4f1d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -12,17 +12,17 @@
void setSkodaFavorit(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, SyncEdge::Rise);
s->addEvent360(46, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEvent360(133, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEvent360(177, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->addEvent360(180, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEvent360(183, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->addEvent360(226, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEvent360(313, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEvent360(360, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->tdcPosition = 180 - 46;
s->setTriggerSynchronizationGap3(/*gapIndex*/0, 2.75, 5);
s->tdcPosition = 180 + 47;
s->setTriggerSynchronizationGap3(/*gapIndex*/0, 2, 4);
}
void setVwConfiguration(TriggerWaveform *s) {