From cc861e186231d40a87692bf6e689134dee1b0adb Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 25 May 2021 16:31:37 -0400 Subject: [PATCH] Subaru 7+6 trigger refactoring, not changing gap ratio much --- firmware/controllers/trigger/decoders/trigger_subaru.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_subaru.cpp b/firmware/controllers/trigger/decoders/trigger_subaru.cpp index d99b4f3f49..b7fd78ee82 100644 --- a/firmware/controllers/trigger/decoders/trigger_subaru.cpp +++ b/firmware/controllers/trigger/decoders/trigger_subaru.cpp @@ -114,8 +114,9 @@ static void initializeSubaru7_6(TriggerWaveform *s, bool withCrankWheel) { s->addEvent720(720 - width, T_PRIMARY, TV_RISE); s->addEvent720(720, T_PRIMARY, TV_FALL); - s->setTriggerSynchronizationGap2(4.9, 9); - s->setTriggerSynchronizationGap3(1, 0.6, 1.25); + // why is this trigger gap wider than average? + s->setTriggerSynchronizationGap2(6.53 * TRIGGER_GAP_DEVIATION_LOW, 7.2 * TRIGGER_GAP_DEVIATION_HIGH); + s->setTriggerSynchronizationGap3(1, 0.8 * TRIGGER_GAP_DEVIATION_LOW, 1 * TRIGGER_GAP_DEVIATION_HIGH); s->useOnlyPrimaryForSync = true;