/* * trigger_suzuki.cpp * * @date Oct 4, 2021 * @author Andrey Belomutskiy, (c) 2012-2021 */ #include "pch.h" #include "trigger_suzuki.h" void initializeSuzukiG13B(TriggerWaveform *s) { s->initialize(FOUR_STROKE_CAM_SENSOR, SyncEdge::RiseOnly); float w = 5; float specialTooth = 20; s->addEvent720(180 - w, TriggerValue::RISE); s->addEvent720(180, TriggerValue::FALL); s->addEvent720(2 * specialTooth + 180 - w, TriggerValue::RISE); s->addEvent720(2 * specialTooth + 180, TriggerValue::FALL); s->addEvent720(360 - w, TriggerValue::RISE); s->addEvent720(360, TriggerValue::FALL); s->addEvent720(540 - w, TriggerValue::RISE); s->addEvent720(540, TriggerValue::FALL); s->addEvent720(720 - w, TriggerValue::RISE); s->addEvent720(720, TriggerValue::FALL); s->setTriggerSynchronizationGap(0.22); s->setSecondTriggerSynchronizationGap(1); }