From 67412fbf4321b8cd72db844853d3ff65c40838c1 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 2 Apr 2022 22:55:44 -0400 Subject: [PATCH] Trigger setup in TS is highly confusing: hide operation mode from users? #4031 --- firmware/config/engines/custom_engine.cpp | 2 ++ firmware/config/engines/ford_1995_inline_6.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index a4c2c8eb76..9f0cc4c2db 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -814,6 +814,8 @@ void setRotary() { engineConfiguration->trigger.type = TT_36_2_2_2; setOperationMode(engineConfiguration, TWO_STROKE); + // todo: fix UI to make this possible via TS + engineConfiguration->twoStroke = true; strcpy(engineConfiguration->engineMake, ENGINE_MAKE_MAZDA); strcpy(engineConfiguration->engineCode, "13B"); diff --git a/firmware/config/engines/ford_1995_inline_6.cpp b/firmware/config/engines/ford_1995_inline_6.cpp index 9bab48ce65..fe99f7b7d6 100644 --- a/firmware/config/engines/ford_1995_inline_6.cpp +++ b/firmware/config/engines/ford_1995_inline_6.cpp @@ -33,13 +33,14 @@ void setFordInline6() { /** - * 0.5ms dweel time just to be sure it would fit within camshaft revolution, dwell is not controlled by us anyway + * 0.5ms dwell time just to be sure it would fit within camshaft revolution, dwell is not controlled by us anyway */ setConstantDwell(0.5); /** * We treat the trigger as 6/0 toothed wheel */ + engineConfiguration->skippedWheelOnCam = true; engineConfiguration->trigger.type = TT_TOOTHED_WHEEL; engineConfiguration->trigger.customTotalToothCount = 6; engineConfiguration->trigger.customSkippedToothCount = 0;