Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912

This commit is contained in:
rusefillc 2021-01-03 13:34:00 -05:00
parent 1caeef7ca2
commit 8f06008239
2 changed files with 2 additions and 0 deletions

View File

@ -12,4 +12,5 @@
void configureFiatIAQ_P8(TriggerWaveform * s);
void configureDaihatsu4(TriggerWaveform * s);
void configureFordST170(TriggerWaveform * s);
void configureTriTach(TriggerWaveform * s);

View File

@ -28,6 +28,7 @@ void addSkippedToothTriggerEvents(trigger_wheel_e wheel, TriggerWaveform *s, int
float angleDown = engineCycle / totalTeethCount * (totalTeethCount - skippedCount - 1 + (1 - toothWidth));
s->addEventClamped(offset + angleDown, wheel, TV_RISE, filterLeft, filterRight);
// custom handling of last event in order to avoid rounding error
s->addEventClamped(offset + engineCycle, wheel, TV_FALL, filterLeft, filterRight);
}