2021-10-04 08:25:27 -07:00
|
|
|
/*
|
|
|
|
* trigger_suzuki.cpp
|
|
|
|
*
|
|
|
|
* @date Oct 4, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "trigger_subaru.h"
|
|
|
|
|
|
|
|
void initializeSuzukiG13B(TriggerWaveform *s) {
|
2021-10-04 16:28:45 -07:00
|
|
|
s->initialize(FOUR_STROKE_CAM_SENSOR);
|
2021-10-04 08:25:27 -07:00
|
|
|
|
2021-10-04 16:28:45 -07:00
|
|
|
float w = 5;
|
2021-10-04 16:59:51 -07:00
|
|
|
float specialTooth = 20;
|
2021-10-04 16:28:45 -07:00
|
|
|
|
|
|
|
s->addEvent720(180 - w, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(180, T_PRIMARY, TV_FALL);
|
|
|
|
|
2021-10-04 16:59:51 -07:00
|
|
|
s->addEvent720(2 * specialTooth + 180 - w, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(2 * specialTooth + 180, T_PRIMARY, TV_FALL);
|
2021-10-04 16:28:45 -07:00
|
|
|
|
|
|
|
s->addEvent720(360 - w, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(360, T_PRIMARY, TV_FALL);
|
|
|
|
|
|
|
|
s->addEvent720(540 - w, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(540, T_PRIMARY, TV_FALL);
|
|
|
|
|
|
|
|
s->addEvent720(720 - w, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(720, T_PRIMARY, TV_FALL);
|
|
|
|
|
2021-10-04 16:59:51 -07:00
|
|
|
s->setTriggerSynchronizationGap(0.22);
|
2021-10-04 16:28:45 -07:00
|
|
|
s->setSecondTriggerSynchronizationGap(1);
|
2021-10-04 08:25:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|