From 51def75f8df66bd75a701fa977f1e2d764317cd0 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 13 May 2023 16:08:23 -0400 Subject: [PATCH] Ford Coyote VVT Decoder #5275 only:alphax-8chan --- .../trigger/decoders/trigger_ford.cpp | 17 +++++++++++++++++ .../trigger/decoders/trigger_structure.cpp | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_ford.cpp b/firmware/controllers/trigger/decoders/trigger_ford.cpp index 57bd6d53dd..437496ee94 100644 --- a/firmware/controllers/trigger/decoders/trigger_ford.cpp +++ b/firmware/controllers/trigger/decoders/trigger_ford.cpp @@ -9,4 +9,21 @@ #include "trigger_ford.h" void configureFordCoyote(TriggerWaveform *s) { + s->initialize(FOUR_STROKE_CAM_SENSOR, SyncEdge::RiseOnly); + + s->setTriggerSynchronizationGap(3); + s->setSecondTriggerSynchronizationGap(0.5); + + int narrowGap = 30; + + s->addToothRiseFall(45); + s->addToothRiseFall(90); + + s->addToothRiseFall(180 - 30); + s->addToothRiseFall(180); + + s->addToothRiseFall(270 - 30); + s->addToothRiseFall(270); + + s->addToothRiseFall(360); } diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index 86a9d0560f..f002b9b659 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -632,8 +632,8 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e triggerOperatio initializeMitsubishi4gSymmetricalCrank(this); break; case TT_VVT_FORD_COYOTE: -// todo configureFordCoyote(this); -// break; + configureFordCoyote(this); + break; case TT_UNUSED_11: case TT_UNUSED_75: case TT_UNUSED_77: