Nissan VVT trigger decoder #2887
This commit is contained in:
parent
61834eafd6
commit
ae7937402c
|
@ -119,19 +119,25 @@ void initializeNissanVQvvt(TriggerWaveform *s) {
|
||||||
|
|
||||||
int offset = 720 - 520;
|
int offset = 720 - 520;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
addPrimaryToothEndingAt(s, offset + 40);
|
addPrimaryToothEndingAt(s, offset + 40);
|
||||||
|
|
||||||
addPrimaryToothEndingAt(s, offset + 160);
|
addPrimaryToothEndingAt(s, offset + 160);
|
||||||
addPrimaryToothEndingAt(s, offset + 200);
|
addPrimaryToothEndingAt(s, offset + 200);
|
||||||
|
|
||||||
|
|
||||||
addPrimaryToothEndingAt(s, offset + 280);
|
addPrimaryToothEndingAt(s, offset + 280);
|
||||||
|
|
||||||
|
|
||||||
addPrimaryToothEndingAt(s, offset + 320);
|
addPrimaryToothEndingAt(s, offset + 320);
|
||||||
|
|
||||||
addPrimaryToothEndingAt(s, offset + 520);
|
addPrimaryToothEndingAt(s, offset + 520);
|
||||||
|
|
||||||
|
s->setTriggerSynchronizationGap(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
void initializeNissanVQcrank(TriggerWaveform *s) {
|
||||||
|
s->initialize(FOUR_STROKE_THREE_TIMES_CRANK_SENSOR);
|
||||||
|
s->setTriggerSynchronizationGap(0.33);
|
||||||
|
|
||||||
|
float currentAngle = 20;
|
||||||
|
for (int i = 0;i < 10;i++) {
|
||||||
|
currentAngle += 10;
|
||||||
|
s->addEventAngle(currentAngle - 5, T_PRIMARY, TV_RISE);
|
||||||
|
s->addEventAngle(currentAngle, T_PRIMARY, TV_FALL);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,6 +117,7 @@ int TriggerWaveform::getTriggerWaveformSynchPointIndex() const {
|
||||||
/**
|
/**
|
||||||
* physical primary trigger duration
|
* physical primary trigger duration
|
||||||
* @see getEngineCycle
|
* @see getEngineCycle
|
||||||
|
* @see getCrankDivider
|
||||||
*/
|
*/
|
||||||
angle_t TriggerWaveform::getCycleDuration() const {
|
angle_t TriggerWaveform::getCycleDuration() const {
|
||||||
switch (operationMode) {
|
switch (operationMode) {
|
||||||
|
@ -550,6 +551,9 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TT_TT_NISSAN_VQ:
|
case TT_TT_NISSAN_VQ:
|
||||||
|
initializeNissanVQcrank(this);
|
||||||
|
break;
|
||||||
|
|
||||||
case TT_KAWA_KX450F:
|
case TT_KAWA_KX450F:
|
||||||
configureKawaKX450F(this);
|
configureKawaKX450F(this);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue