rusefi/firmware/controllers/trigger/decoders/trigger_mercedes.cpp

22 lines
591 B
C++

#include "pch.h"
#include "trigger_mercedes.h"
#include "trigger_structure.h"
void setMercedesTwoSegment(TriggerWaveform* s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, SyncEdge::Rise);
s->addEvent360(180 - 10, TriggerValue::RISE);
s->addEvent360(180, TriggerValue::FALL);
s->addEvent360(227 - 10, TriggerValue::RISE);
s->addEvent360(227, TriggerValue::FALL);
s->addEvent360(360 - 10, TriggerValue::RISE);
s->addEvent360(360, TriggerValue::FALL);
s->setTriggerSynchronizationGap(1.35);
s->setSecondTriggerSynchronizationGap(2.84);
s->setThirdTriggerSynchronizationGap(0.26);
}