2021-11-13 18:50:04 -08:00
|
|
|
#include "trigger_mercedes.h"
|
|
|
|
#include "trigger_structure.h"
|
|
|
|
|
|
|
|
void setMercedesTwoSegment(TriggerWaveform* s) {
|
|
|
|
s->initialize(FOUR_STROKE_CRANK_SENSOR);
|
|
|
|
|
2021-11-14 12:32:35 -08:00
|
|
|
s->addEvent360(180 - 10, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent360(180, T_PRIMARY, TV_FALL);
|
2021-11-13 18:50:04 -08:00
|
|
|
|
2021-11-14 12:32:35 -08:00
|
|
|
s->addEvent360(227 - 10, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent360(227, T_PRIMARY, TV_FALL);
|
2021-11-13 18:50:04 -08:00
|
|
|
|
|
|
|
s->addEvent360(360 - 10, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent360(360, T_PRIMARY, TV_FALL);
|
|
|
|
|
2021-11-14 12:32:35 -08:00
|
|
|
s->setTriggerSynchronizationGap(1.35);
|
|
|
|
s->setSecondTriggerSynchronizationGap(2.84);
|
|
|
|
s->setThirdTriggerSynchronizationGap(0.26);
|
2021-11-13 18:50:04 -08:00
|
|
|
}
|