6.1 Hemi V8 decoder #2010
This commit is contained in:
parent
0a23e82baf
commit
8e13892736
|
@ -583,30 +583,27 @@ void configureChryslerNGC_36_2_2(TriggerWaveform *s) {
|
||||||
|
|
||||||
s->isSynchronizationNeeded = true;
|
s->isSynchronizationNeeded = true;
|
||||||
s->setTriggerSynchronizationGap(0.5);
|
s->setTriggerSynchronizationGap(0.5);
|
||||||
s->setSecondTriggerSynchronizationGap(1);
|
|
||||||
|
|
||||||
float base = 0;
|
float base = 0;
|
||||||
|
|
||||||
for (int i = 0; i < 12; i++) {
|
for (int i = 0; i < 16; i++) {
|
||||||
s->addEvent720(base + narrow / 2, T_PRIMARY, TV_RISE);
|
s->addEvent720(base + narrow / 2, T_PRIMARY, TV_RISE);
|
||||||
s->addEvent720(base + narrow, T_PRIMARY, TV_FALL);
|
s->addEvent720(base + narrow, T_PRIMARY, TV_FALL);
|
||||||
base += narrow;
|
base += narrow;
|
||||||
}
|
}
|
||||||
|
|
||||||
s->addEvent720(base + wide / 2, T_PRIMARY, TV_RISE);
|
s->addEvent720(base + narrow / 2, T_PRIMARY, TV_RISE);
|
||||||
|
base += narrow / 2;
|
||||||
s->addEvent720(base + wide, T_PRIMARY, TV_FALL);
|
s->addEvent720(base + wide, T_PRIMARY, TV_FALL);
|
||||||
base += wide;
|
base += wide;
|
||||||
|
|
||||||
for (int i = 0; i < 15; i++) {
|
for (int i = 0; i < 14; i++) {
|
||||||
s->addEvent720(base + narrow / 2, T_PRIMARY, TV_RISE);
|
s->addEvent720(base + narrow / 2, T_PRIMARY, TV_RISE);
|
||||||
s->addEvent720(base + narrow, T_PRIMARY, TV_FALL);
|
s->addEvent720(base + narrow, T_PRIMARY, TV_FALL);
|
||||||
base += narrow;
|
base += narrow;
|
||||||
}
|
}
|
||||||
|
|
||||||
s->addEvent720(720 - wide - wide / 2, T_PRIMARY, TV_RISE);
|
s->addEvent720(720 - narrow / 2, T_PRIMARY, TV_RISE);
|
||||||
s->addEvent720(720 - wide, T_PRIMARY, TV_FALL);
|
|
||||||
|
|
||||||
s->addEvent720(720 - wide / 2, T_PRIMARY, TV_RISE);
|
|
||||||
s->addEvent720(720, T_PRIMARY, TV_FALL);
|
s->addEvent720(720, T_PRIMARY, TV_FALL);
|
||||||
s->useOnlyPrimaryForSync = true;
|
s->useOnlyPrimaryForSync = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ void TriggerStimulatorHelper::assertSyncPositionAndSetDutyCycle(
|
||||||
}
|
}
|
||||||
int revolutionCounter = state.getTotalRevolutionCounter();
|
int revolutionCounter = state.getTotalRevolutionCounter();
|
||||||
if (revolutionCounter != GAP_TRACKING_LENGTH + 1) {
|
if (revolutionCounter != GAP_TRACKING_LENGTH + 1) {
|
||||||
warning(CUSTOM_OBD_TRIGGER_WAVEFORM, "sync failed/wrong gap parameters trigger=%s rc=%d", getTrigger_type_e(triggerConfiguration.TriggerType), revolutionCounter);
|
warning(CUSTOM_OBD_TRIGGER_WAVEFORM, "sync failed/wrong gap parameters trigger=%s revolutionCounter=%d", getTrigger_type_e(triggerConfiguration.TriggerType), revolutionCounter);
|
||||||
shape.setShapeDefinitionError(true);
|
shape.setShapeDefinitionError(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue