diff --git a/firmware/controllers/trigger/decoders/trigger_gm.cpp b/firmware/controllers/trigger/decoders/trigger_gm.cpp index f3009435f4..cd8387b2e2 100644 --- a/firmware/controllers/trigger/decoders/trigger_gm.cpp +++ b/firmware/controllers/trigger/decoders/trigger_gm.cpp @@ -7,6 +7,22 @@ #include "trigger_gm.h" +/** + * https://github.com/rusefi/rusefi/issues/2264 + * GM/Daewoo Distributor on the F8CV + */ +void configureGm60_2_2_2(TriggerWaveform *s) { + s->initialize(FOUR_STROKE_CAM_SENSOR); + s->isSynchronizationNeeded = false; + + int offset = 3; + float m = CRANK_MODE_MULTIPLIER; + + s->addEventAngle(m * (360 - 10), T_PRIMARY, TV_RISE); + s->addEventAngle(m * (360), T_PRIMARY, TV_FALL); + +} + void configureGmTriggerWaveform(TriggerWaveform *s) { s->initialize(FOUR_STROKE_CRANK_SENSOR); diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index f9ae34d265..d390ffb402 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -541,6 +541,9 @@ void TriggerWaveform::initializeTriggerWaveform(Logging *logger, operation_mode_ break; case TT_GM_60_2_2_2: + configureGm60_2_2_2(this); + break; + case TT_GM_7X: configureGmTriggerWaveform(this); break;