2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file trigger_mitsubishi.cpp
|
|
|
|
*
|
|
|
|
* @date Aug 5, 2014
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "trigger_mitsubishi.h"
|
|
|
|
|
2019-12-07 22:09:39 -08:00
|
|
|
void configureFordAspireTriggerWaveform(TriggerWaveform * s) {
|
2020-01-12 07:43:02 -08:00
|
|
|
s->initialize(FOUR_STROKE_CAM_SENSOR);
|
2015-10-29 15:01:16 -07:00
|
|
|
s->isSynchronizationNeeded = false;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
float x = 121.90;
|
|
|
|
float y = 110.86;
|
|
|
|
|
2018-12-25 08:51:49 -08:00
|
|
|
s->addEvent720(x + y - 180, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(x, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(x + y, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(x + 180, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(360, T_PRIMARY, TV_RISE);
|
|
|
|
|
|
|
|
s->addEvent720(x + 180 + y, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(x + 360, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(x + 360 + y, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(x + 540, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(720, T_PRIMARY, TV_FALL);
|
2016-06-12 07:01:41 -07:00
|
|
|
s->useOnlyPrimaryForSync = true;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|
|
|
|
|
2017-02-23 19:27:12 -08:00
|
|
|
/**
|
|
|
|
* TT_MITSUBISHI = 11
|
|
|
|
*/
|
2019-12-07 22:09:39 -08:00
|
|
|
void initializeMitsubishi4g18(TriggerWaveform *s) {
|
2020-01-12 07:43:02 -08:00
|
|
|
s->initialize(FOUR_STROKE_CAM_SENSOR);
|
2015-07-10 06:01:56 -07:00
|
|
|
s->useRiseEdge = false;
|
|
|
|
|
|
|
|
s->setTriggerSynchronizationGap(1.6666);
|
|
|
|
|
2018-12-25 08:51:49 -08:00
|
|
|
s->addEvent720(106.77999999999997, T_PRIMARY, TV_FALL);
|
|
|
|
s->addEvent720(120.09999999999998, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(188.0775, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(286.33, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(298.875, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(354.91999999999996, T_PRIMARY, TV_FALL);
|
|
|
|
s->addEvent720(366.6825, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(476.45, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(543.9749999999999, T_SECONDARY, TV_FALL);
|
|
|
|
s->addEvent720(639.52, T_PRIMARY, TV_RISE);
|
|
|
|
s->addEvent720(653.15, T_SECONDARY, TV_RISE);
|
|
|
|
s->addEvent720(720.0, T_SECONDARY, TV_FALL);
|
2016-06-13 23:01:37 -07:00
|
|
|
s->useOnlyPrimaryForSync = true;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|