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

22 lines
725 B
C++
Raw Normal View History

#include "pch.h"
#include "trigger_mercedes.h"
#include "trigger_structure.h"
void setMercedesTwoSegment(TriggerWaveform* s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR);
2022-09-11 00:46:50 -07:00
s->addEvent360(180 - 10, TriggerWheel::T_PRIMARY, TriggerValue::RISE);
s->addEvent360(180, TriggerWheel::T_PRIMARY, TriggerValue::FALL);
2022-09-11 00:46:50 -07:00
s->addEvent360(227 - 10, TriggerWheel::T_PRIMARY, TriggerValue::RISE);
s->addEvent360(227, TriggerWheel::T_PRIMARY, TriggerValue::FALL);
2022-09-11 00:46:50 -07:00
s->addEvent360(360 - 10, TriggerWheel::T_PRIMARY, TriggerValue::RISE);
s->addEvent360(360, TriggerWheel::T_PRIMARY, TriggerValue::FALL);
s->setTriggerSynchronizationGap(1.35);
s->setSecondTriggerSynchronizationGap(2.84);
s->setThirdTriggerSynchronizationGap(0.26);
}