From 61ef70dac2a03a186e2295a24c505eb0b88a0173 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 9 Jan 2023 15:48:49 -0500 Subject: [PATCH] 12 tooth crank issues fix #4943 --- .../trigger/decoders/trigger_universal.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_universal.cpp b/firmware/controllers/trigger/decoders/trigger_universal.cpp index f2bd2c40a2..c796b98611 100644 --- a/firmware/controllers/trigger/decoders/trigger_universal.cpp +++ b/firmware/controllers/trigger/decoders/trigger_universal.cpp @@ -159,9 +159,14 @@ void configure12ToothCrank(TriggerWaveform* s) { s->shapeWithoutTdc = true; - // Sync after 3 good teeth - for (size_t i = 0; i < 3; i++) { - s->setTriggerSynchronizationGap3(i, 0.55f, 1.45f); + // Sync after 2 good teeth + for (size_t i = 0; i < 2; i++) { + /** + * https://github.com/rusefi/rusefi/issues/4943#issuecomment-1376289608 + * gaps would be nice during running but horrible during running + * Hopefully we do not want variable gap logic yet? + */ + s->setTriggerSynchronizationGap3(i, 0.2f, 3.4f); } float width = 360 / 12;