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:
parent
cbc35e973e
commit
0251c4f1d5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue