fome-fw/firmware/controllers/trigger/trigger_nissan.cpp

31 lines
580 B
C++
Raw Normal View History

2015-09-19 16:01:46 -07:00
/**
* @file trigger_nissan.cpp
*
* @date Sep 19, 2015
2015-12-31 13:02:30 -08:00
* @author Andrey Belomutskiy, (c) 2012-2016
2015-09-19 16:01:46 -07:00
*/
#include "trigger_nissan.h"
void initializeNissan(TriggerShape *s) {
2015-10-29 11:02:52 -07:00
s->initialize(FOUR_STROKE_CAM_SENSOR, false);
2015-09-19 17:01:38 -07:00
s->isSynchronizationNeeded = false;
float w = 5;
float base = 180;
2015-12-28 15:01:45 -08:00
// todo: what was this about? :) what Nissan? Need to dig the forum around Sep 19, 2015
// was is the the one with 360 opto sensor?
2015-09-19 17:01:38 -07:00
base += 180;
// todo
base += 180;
// todo
base += 180;
2015-10-31 13:02:10 -07:00
s->addEvent(base - w, T_PRIMARY, TV_RISE);
s->addEvent(base, T_PRIMARY, TV_FALL);
2015-09-19 16:01:46 -07:00
}