explicit SR20VE name

This commit is contained in:
rusefi 2017-03-18 20:18:21 -04:00
parent 760c953e47
commit 0d330b3c84
5 changed files with 16 additions and 11 deletions

View File

@ -207,8 +207,8 @@ case TT_DODGE_RAM:
return "TT_DODGE_RAM"; return "TT_DODGE_RAM";
case TT_UNUSED: case TT_UNUSED:
return "TT_UNUSED"; return "TT_UNUSED";
case TT_NISSAN: case TT_NISSAN_SR20VE:
return "TT_NISSAN"; return "TT_NISSAN_SR20VE";
case TT_2JZ_1_12: case TT_2JZ_1_12:
return "TT_2JZ_1_12"; return "TT_2JZ_1_12";
case TT_2JZ_3_34: case TT_2JZ_3_34:

View File

@ -207,7 +207,7 @@ typedef enum {
TT_36_2_2_2 = 23, TT_36_2_2_2 = 23,
TT_NISSAN = 24, TT_NISSAN_SR20VE = 24,
TT_2JZ_3_34 = 25, TT_2JZ_3_34 = 25,

View File

@ -7,23 +7,28 @@
#include "trigger_nissan.h" #include "trigger_nissan.h"
void initializeNissan(TriggerShape *s DECLARE_ENGINE_PARAMETER_S) { void initializeNissanSR20VE(TriggerShape *s DECLARE_ENGINE_PARAMETER_S) {
s->initialize(FOUR_STROKE_CAM_SENSOR, false); s->initialize(FOUR_STROKE_CAM_SENSOR, false);
s->isSynchronizationNeeded = false; s->isSynchronizationNeeded = false;
float w = 5; float w = 5;
float base = 180; float base = 180;
s->addEvent2(base - w, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER);
s->addEvent2(base, T_PRIMARY, TV_FALL PASS_ENGINE_PARAMETER);
// todo: what was this about? :) what Nissan? Need to dig the forum around Sep 19, 2015 // 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? // was is the the one with 360 opto sensor?
base += 180; base += 180;
// todo s->addEvent2(base - w, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER);
base += 180; s->addEvent2(base, T_PRIMARY, TV_FALL PASS_ENGINE_PARAMETER);
// todo
base += 180;
base += 180;
s->addEvent2(base - w, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER);
s->addEvent2(base, T_PRIMARY, TV_FALL PASS_ENGINE_PARAMETER);
base += 180;
s->addEvent2(base - w, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER); s->addEvent2(base - w, T_PRIMARY, TV_RISE PASS_ENGINE_PARAMETER);
s->addEvent2(base, T_PRIMARY, TV_FALL PASS_ENGINE_PARAMETER); s->addEvent2(base, T_PRIMARY, TV_FALL PASS_ENGINE_PARAMETER);

View File

@ -10,6 +10,6 @@
#include "trigger_structure.h" #include "trigger_structure.h"
void initializeNissan(TriggerShape *s DECLARE_ENGINE_PARAMETER_S); void initializeNissanSR20VE(TriggerShape *s DECLARE_ENGINE_PARAMETER_S);
#endif /* CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_ */ #endif /* CONTROLLERS_TRIGGER_TRIGGER_NISSAN_H_ */

View File

@ -625,8 +625,8 @@ void TriggerShape::initializeTriggerShape(Logging *logger DECLARE_ENGINE_PARAMET
initialize2jzGE1_12(this PASS_ENGINE_PARAMETER); initialize2jzGE1_12(this PASS_ENGINE_PARAMETER);
break; break;
case TT_NISSAN: case TT_NISSAN_SR20VE:
initializeNissan(this PASS_ENGINE_PARAMETER); initializeNissanSR20VE(this PASS_ENGINE_PARAMETER);
break; break;
case TT_ROVER_K: case TT_ROVER_K: