2022-04-25 17:38:16 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2021-11-13 18:50:04 -08:00
|
|
|
#include "trigger_mercedes.h"
|
|
|
|
#include "trigger_structure.h"
|
|
|
|
|
|
|
|
void setMercedesTwoSegment(TriggerWaveform* s) {
|
2022-09-23 17:39:41 -07:00
|
|
|
s->initialize(FOUR_STROKE_CRANK_SENSOR, SyncEdge::Rise);
|
2021-11-13 18:50:04 -08:00
|
|
|
|
2023-05-13 12:34:59 -07:00
|
|
|
s->addToothRiseFall(180);
|
2021-11-13 18:50:04 -08:00
|
|
|
|
2023-05-13 12:34:59 -07:00
|
|
|
s->addToothRiseFall(227);
|
2021-11-13 18:50:04 -08:00
|
|
|
|
2023-05-13 12:34:59 -07:00
|
|
|
s->addToothRiseFall(360);
|
2021-11-13 18:50:04 -08:00
|
|
|
|
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
|
|
|
}
|