6.1 Hemi V8 decoder fix #2010

This commit is contained in:
rusefillc 2020-12-04 16:50:26 -05:00
parent 589558b5f1
commit 5464498909
1 changed files with 5 additions and 4 deletions

View File

@ -583,14 +583,14 @@ void configureChryslerNGC_36_2_2(TriggerWaveform *s) {
s->isSynchronizationNeeded = true;
s->setTriggerSynchronizationGap(3.5);
for (int i = 1; i < 13; i++) {
for (int i = 1; i < 15; i++) {
s->setTriggerSynchronizationGap3(/*gapIndex*/i, TRIGGER_GAP_DEVIATION_LOW, TRIGGER_GAP_DEVIATION_HIGH);
}
s->setTriggerSynchronizationGap3(/*gapIndex*/13, 0.29 * TRIGGER_GAP_DEVIATION_LOW, 0.29 * TRIGGER_GAP_DEVIATION_HIGH);
s->setTriggerSynchronizationGap3(/*gapIndex*/15, 0.4 * TRIGGER_GAP_DEVIATION_LOW, 0.4 * TRIGGER_GAP_DEVIATION_HIGH);
float base = 0;
for (int i = 0; i < 15; i++) {
for (int i = 0; i < 14; i++) {
s->addEventAngle(base + narrow / 2, T_PRIMARY, TV_RISE);
s->addEventAngle(base + narrow, T_PRIMARY, TV_FALL);
base += narrow;
@ -601,12 +601,13 @@ void configureChryslerNGC_36_2_2(TriggerWaveform *s) {
s->addEventAngle(base + wide, T_PRIMARY, TV_FALL);
base += wide;
for (int i = 0; i < 14; i++) {
for (int i = 0; i < 16; i++) {
s->addEventAngle(base + narrow / 2, T_PRIMARY, TV_RISE);
s->addEventAngle(base + narrow, T_PRIMARY, TV_FALL);
base += narrow;
}
// one small tooth at the end of the engine cycle
s->addEventAngle(s->getCycleDuration() - narrow / 2, T_PRIMARY, TV_RISE);
s->addEventAngle(s->getCycleDuration(), T_PRIMARY, TV_FALL);
s->useOnlyPrimaryForSync = true;