Nissan VVT trigger decoder #2887

This commit is contained in:
Andrey 2021-07-01 23:53:53 -04:00
parent c96e233341
commit ab8bb3a5cb
1 changed files with 2 additions and 1 deletions

View File

@ -133,11 +133,12 @@ void initializeNissanVQcrank(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_THREE_TIMES_CRANK_SENSOR);
s->setTriggerSynchronizationGap(0.33);
s->tdcPosition = 675;
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);
}
}