only: cylinderBankSelect is zero-based index

This commit is contained in:
rusefillc 2024-05-13 16:18:49 -04:00
parent 865d9634e2
commit 810e254f93
1 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ void setGDIFueling() {
/* Cylinder to bank mapping */
void setLeftRightBanksNeedBetterName() {
for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) {
// zero-based index
engineConfiguration->cylinderBankSelect[i] = i % 2;
}
}
@ -66,7 +67,8 @@ void setDefaultBaseEngine() {
for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) {
// one knock sensor by default. See also 'setLeftRightBanksNeedBetterName()'
engineConfiguration->cylinderBankSelect[i] = 1;
// zero-based index
engineConfiguration->cylinderBankSelect[i] = 0;
}
engineConfiguration->compressionRatio = 9;