This commit is contained in:
Andrey 2021-10-04 19:28:45 -04:00
parent 6ddce56537
commit de5af3f4ca
2 changed files with 24 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include "trigger_misc.h"
#include "trigger_mitsubishi.h"
#include "trigger_subaru.h"
#include "trigger_suzuki.h"
#include "trigger_structure.h"
#include "trigger_toyota.h"
#include "trigger_renix.h"
@ -509,6 +510,9 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat
break;
case TT_SUZUKI_G13B:
initializeSuzukiG13B(this);
break;
case TT_FORD_TFI_PIP:
configureFordPip(this);
break;

View File

@ -8,7 +8,27 @@
#include "trigger_subaru.h"
void initializeSuzukiG13B(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
float w = 5;
s->addEvent720(180 - w, T_PRIMARY, TV_RISE);
s->addEvent720(180, T_PRIMARY, TV_FALL);
s->addEvent720(30 + 180 - w, T_PRIMARY, TV_RISE);
s->addEvent720(30 + 180, T_PRIMARY, TV_FALL);
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);
s->setTriggerSynchronizationGap(0.14);
s->setSecondTriggerSynchronizationGap(1);
}