Auto-generated default tune

This commit is contained in:
GitHub gen-default-tune Action 2024-03-06 14:07:38 +00:00
parent 38acaab9fd
commit 0f55a83961
22 changed files with 47694 additions and 0 deletions

View File

@ -0,0 +1,66 @@
# COUPE-BK2-comparing-against-current-COUPE-BK2-default
// canned tune https://rusefi.com/online/view.php?msq=1507
```
// default 0.0
engineConfiguration->cylinderBankSelect[0] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[1] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[2] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[3] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[4] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[5] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[6] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[7] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[8] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[9] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[10] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[11] = 1;
// default 300.0
engineConfiguration->idle.solenoidFrequency = 200;
// default "false"
engineConfiguration->stepperDcInvertedPins = true;
// default 0.0
engineConfiguration->idleTimingPid.dFactor = 5.0E-5;
// default 0.0
engineConfiguration->warningPeriod = 10;
// default 20.0
engineConfiguration->knockRetardAggression = 0;
// default 3.0
engineConfiguration->knockRetardReapplyRate = 0;
// default 500.0
engineConfiguration->vvtControlMinRpm = 1500;
// default "MAP"
engineConfiguration->debugMode = DBG_22;
// default 250.0
engineConfiguration->etbRevLimitRange = 0;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
engineConfiguration->boostControlMinTps = 0;
// default 110.0
engineConfiguration->boostControlMinMap = 0;
// default 400.0
engineConfiguration->engineChartSize = 300;
cannedtpsTpsAccelTable();
cannedscriptTable4();
cannedignitionTable();
cannedveTable();
cannedpedalToTpsTable();
cannedlambdaTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -0,0 +1,132 @@
static void cannedtpsTpsAccelTable() {
static const float hardCodedtpsTpsAccelTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{5.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{8.500, 5.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.500, 8.500, 5.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.000, 11.500, 8.500, 5.000, 0.000, 0.000, 0.000, 0.000, },
{16.000, 14.000, 11.500, 8.500, 5.000, 0.000, 0.000, 0.000, },
{17.500, 16.000, 14.000, 11.500, 8.500, 5.000, 0.000, 0.000, },
{18.500, 17.500, 16.000, 14.000, 11.500, 8.500, 5.000, 0.000, },
};
copyTable(config->tpsTpsAccelTable, hardCodedtpsTpsAccelTable);
}
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{12.100, 14.000, 17.800, 22.900, 29.300, 35.600, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 42.000, 42.000, 42.000, 42.000, },
{11.800, 13.700, 10.000, 14.900, 28.600, 34.800, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 41.000, 41.000, 41.000, 41.000, },
{11.600, 13.400, 12.300, 17.100, 28.000, 33.900, 39.200, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, },
{11.400, 13.200, 16.700, 21.400, 27.300, 33.100, 38.200, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, },
{11.200, 12.900, 16.300, 20.800, 26.600, 32.300, 37.200, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, },
{10.900, 12.600, 16.600, 20.200, 26.400, 26.700, 27.000, 28.500, 30.000, 30.400, 30.800, 31.100, 31.500, 31.900, 32.300, 33.000, },
{10.800, 12.400, 16.800, 19.600, 23.900, 24.200, 24.500, 26.000, 27.500, 27.900, 28.300, 28.600, 29.000, 29.400, 29.800, 30.500, },
{14.300, 14.900, 16.500, 18.800, 20.700, 21.700, 22.000, 23.500, 25.000, 25.400, 25.800, 26.100, 26.500, 26.900, 27.300, 28.000, },
{14.000, 14.600, 15.600, 17.100, 18.500, 19.200, 19.500, 21.000, 22.500, 22.900, 23.300, 23.600, 24.000, 24.400, 24.800, 25.500, },
{12.900, 13.300, 14.000, 15.100, 16.100, 16.700, 17.000, 18.500, 20.000, 20.400, 20.800, 21.100, 21.500, 21.900, 22.300, 23.000, },
{11.700, 12.000, 12.400, 13.100, 13.700, 14.200, 14.500, 16.000, 17.500, 17.900, 18.300, 18.600, 19.000, 19.400, 19.800, 20.500, },
{10.400, 10.500, 10.800, 11.100, 11.500, 11.900, 12.000, 13.500, 15.000, 15.400, 15.800, 16.100, 16.500, 16.900, 17.300, 18.000, },
{8.800, 9.000, 9.100, 9.400, 9.700, 10.000, 10.300, 11.800, 13.300, 13.700, 14.100, 14.400, 14.800, 15.200, 15.600, 16.300, },
{6.700, 6.800, 7.500, 7.700, 8.000, 8.400, 8.700, 10.200, 11.700, 12.100, 12.500, 12.800, 13.200, 13.600, 14.000, 14.700, },
{1.800, 5.600, 6.200, 6.500, 6.800, 7.100, 7.000, 8.500, 10.000, 10.400, 10.800, 11.100, 11.500, 11.900, 12.300, 13.000, },
{-1.200, 2.600, 3.200, 3.600, 4.100, 5.000, 7.100, 7.800, 8.400, 9.000, 9.400, 9.500, 9.700, 9.800, 10.000, 10.000, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{52.000, 54.000, 54.000, 56.000, 61.000, 55.000, 55.000, 65.000, 65.000, 60.000, 60.000, 60.000, 60.000, 60.000, 60.000, 60.000, },
{51.500, 54.500, 54.400, 56.000, 61.000, 68.100, 66.800, 67.600, 68.200, 63.400, 63.400, 63.400, 63.400, 63.400, 63.400, 63.400, },
{52.500, 55.400, 57.700, 62.200, 62.800, 65.800, 69.600, 71.100, 72.200, 67.600, 67.600, 67.600, 67.600, 67.600, 67.600, 67.600, },
{54.200, 56.300, 59.000, 64.300, 65.700, 68.400, 71.400, 72.900, 73.900, 70.500, 70.400, 70.400, 70.300, 70.200, 70.200, 70.200, },
{54.400, 56.700, 59.500, 65.200, 71.800, 75.400, 75.300, 73.800, 74.700, 72.600, 72.500, 72.300, 72.200, 72.100, 72.000, 72.000, },
{55.100, 58.100, 61.400, 67.900, 75.400, 77.300, 75.000, 76.300, 77.200, 77.500, 77.000, 76.500, 76.000, 75.600, 75.400, 75.400, },
{55.800, 59.400, 63.000, 70.100, 73.200, 75.400, 77.800, 78.900, 79.800, 79.100, 78.400, 77.700, 77.000, 76.400, 76.100, 76.100, },
{56.000, 66.200, 70.600, 74.200, 74.100, 76.000, 79.900, 84.100, 82.200, 79.600, 78.900, 78.200, 77.500, 76.900, 76.600, 76.600, },
{58.500, 67.400, 69.200, 75.500, 78.300, 79.900, 81.700, 83.700, 84.700, 82.100, 81.400, 80.700, 80.000, 79.400, 79.100, 79.100, },
{52.900, 70.000, 71.900, 75.900, 79.800, 81.900, 83.700, 85.600, 86.100, 83.600, 83.000, 82.200, 81.600, 81.000, 80.700, 83.700, },
{50.700, 71.000, 73.000, 77.300, 81.600, 83.900, 85.700, 87.600, 87.900, 85.400, 84.800, 84.000, 83.400, 82.800, 82.500, 85.500, },
{53.700, 74.000, 76.000, 80.300, 84.600, 86.900, 88.700, 90.600, 90.900, 88.400, 87.800, 87.000, 86.400, 85.800, 85.500, 88.500, },
{56.700, 77.000, 79.000, 83.300, 87.600, 89.900, 91.700, 93.600, 93.900, 91.400, 90.800, 90.000, 89.400, 88.800, 88.500, 91.500, },
{59.700, 80.000, 82.000, 86.300, 90.600, 92.900, 94.700, 96.600, 96.900, 94.400, 93.800, 93.000, 92.400, 91.800, 91.500, 94.500, },
{62.700, 83.000, 85.000, 89.300, 93.600, 95.900, 97.700, 99.600, 99.900, 97.400, 96.800, 96.000, 95.400, 94.800, 94.500, 97.500, },
{65.700, 86.000, 88.000, 92.300, 96.600, 98.900, 100.700, 102.600, 102.900, 100.400, 99.800, 99.000, 98.400, 97.800, 97.500, 100.500, },
};
copyTable(config->veTable, hardCodedveTable);
}
static void cannedpedalToTpsTable() {
static const float hardCodedpedalToTpsTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{8.000, 8.000, 8.000, 8.000, 8.000, 8.000, 8.000, 8.000, },
{17.000, 17.000, 17.000, 17.000, 17.000, 17.000, 17.000, 17.000, },
{26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, },
{34.000, 34.000, 34.000, 34.000, 34.000, 34.000, 34.000, 34.000, },
{43.000, 43.000, 43.000, 43.000, 43.000, 43.000, 43.000, 43.000, },
{86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, },
{100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, },
};
copyTable(config->pedalToTpsTable, hardCodedpedalToTpsTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, },
{13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, },
{13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, },
{12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, },
{12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, },
{12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, },
{11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, },
{11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, },
{11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, },
{10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}

View File

@ -0,0 +1,164 @@
# COUPE-BK2-comparing-against-global-defaults
// canned tune https://rusefi.com/online/view.php?msq=1507
```
// default "Single Coil"
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
// default 2.0
engineConfiguration->displacement = 1.998;
// default "false"
engineConfiguration->isForcedInduction = true;
// default 0.0
engineConfiguration->globalTriggerAngleOffset = 475;
// default 450.0
engineConfiguration->vvtOffsets[0] = -154;
// default 0.0
engineConfiguration->vvtOffsets[1] = 335;
// default "false"
engineConfiguration->displayLogicLevelsInEngineSniffer = true;
// default 200.0
engineConfiguration->injector.flow = 629.03;
// default "None"
engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
// default 300.0
engineConfiguration->fuelReferencePressure = 586.0544;
// default 0.0
engineConfiguration->cylinderBankSelect[0] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[1] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[2] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[3] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[4] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[5] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[6] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[7] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[8] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[9] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[10] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[11] = 1;
// default 0.0
engineConfiguration->tpsMin = 98;
// default 1000.0
engineConfiguration->tpsMax = 926;
// default 1000.0
engineConfiguration->tps1SecondaryMin = 891;
// default 0.0
engineConfiguration->tps1SecondaryMax = 69;
// default 0.0
engineConfiguration->throttlePedalUpVoltage = 0.73;
// default 5.0
engineConfiguration->throttlePedalWOTVoltage = 4;
// default 5.0
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.34;
// default 0.0
engineConfiguration->throttlePedalSecondaryWOTVoltage = 1.86;
// default 300.0
engineConfiguration->idle.solenoidFrequency = 200;
// default "false"
engineConfiguration->stepperDcInvertedPins = true;
// default "false"
engineConfiguration->useSeparateAdvanceForIdle = true;
// default 0.0
engineConfiguration->iacByTpsHoldTime = 2;
// default 0.0
engineConfiguration->iacByTpsDecayTime = 3;
// default "false"
engineConfiguration->useIdleTimingPidControl = true;
// default 0.0
engineConfiguration->idleTimingPid.dFactor = 5.0E-5;
// default 95.0
engineConfiguration->fanOnTemperature = 80;
// default 91.0
engineConfiguration->fanOffTemperature = 75;
// default "false"
engineConfiguration->disableFan1WhenStopped = true;
// default 95.0
engineConfiguration->fan2OnTemperature = 87;
// default 91.0
engineConfiguration->fan2OffTemperature = 82;
// default "false"
engineConfiguration->disableFan2WhenStopped = true;
// default 0.0
engineConfiguration->warningPeriod = 10;
// default "false"
engineConfiguration->enableSoftwareKnock = true;
// default 20.0
engineConfiguration->knockRetardAggression = 0;
// default 3.0
engineConfiguration->knockRetardReapplyRate = 0;
// default 550.0
engineConfiguration->vvtControlMinRpm = 1500;
// default "advance"
engineConfiguration->invertVvtControlExhaust = retard;
// default 33.0
engineConfiguration->auxPid[0].offset = 38;
// default 0.005
engineConfiguration->auxPid[0].iFactor = 25.4;
// default 0.0
engineConfiguration->auxPid[0].dFactor = 0.1;
// default 0.0
engineConfiguration->auxPid[1].offset = 38;
// default 0.0
engineConfiguration->auxPid[1].pFactor = 2;
// default 0.0
engineConfiguration->auxPid[1].iFactor = 25.4;
// default 0.0
engineConfiguration->auxPid[1].dFactor = 0.2;
// default "MAP"
engineConfiguration->debugMode = DBG_22;
// default 250.0
engineConfiguration->etbRevLimitRange = 0;
// default 50.0
engineConfiguration->crankingIACposition = 70;
// default 200.0
engineConfiguration->afterCrankingIACtaperDuration = 100;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 0.0
engineConfiguration->tpsAccelLookback = 0.3;
// default 40.0
engineConfiguration->tpsAccelEnrichmentThreshold = 12;
// default 0.0
engineConfiguration->tpsDecelEnleanmentThreshold = 7;
// default 0.0
engineConfiguration->tpsAccelFractionPeriod = 3;
// default 0.0
engineConfiguration->tpsAccelFractionDivisor = 3;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
engineConfiguration->boostControlMinTps = 0;
// default 110.0
engineConfiguration->boostControlMinMap = 0;
// default "Throttle 2"
engineConfiguration->etbFunctions[1] = DC_Wastegate;
// default 1.0
engineConfiguration->etb.pFactor = 8.8944;
// default 10.0
engineConfiguration->etb.iFactor = 70.2307;
// default 0.05
engineConfiguration->etb.dFactor = 0.1855;
// default 400.0
engineConfiguration->engineChartSize = 300;
cannedtpsTpsAccelTable();
cannedscriptTable4();
cannedignitionTable();
cannedveTable();
cannedpedalToTpsTable();
cannedlambdaTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -0,0 +1,132 @@
static void cannedtpsTpsAccelTable() {
static const float hardCodedtpsTpsAccelTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{5.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{8.500, 5.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.500, 8.500, 5.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.000, 11.500, 8.500, 5.000, 0.000, 0.000, 0.000, 0.000, },
{16.000, 14.000, 11.500, 8.500, 5.000, 0.000, 0.000, 0.000, },
{17.500, 16.000, 14.000, 11.500, 8.500, 5.000, 0.000, 0.000, },
{18.500, 17.500, 16.000, 14.000, 11.500, 8.500, 5.000, 0.000, },
};
copyTable(config->tpsTpsAccelTable, hardCodedtpsTpsAccelTable);
}
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{12.100, 14.000, 17.800, 22.900, 29.300, 35.600, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 42.000, 42.000, 42.000, 42.000, },
{11.800, 13.700, 10.000, 14.900, 28.600, 34.800, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 41.000, 41.000, 41.000, 41.000, },
{11.600, 13.400, 12.300, 17.100, 28.000, 33.900, 39.200, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, 40.000, },
{11.400, 13.200, 16.700, 21.400, 27.300, 33.100, 38.200, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, 39.000, },
{11.200, 12.900, 16.300, 20.800, 26.600, 32.300, 37.200, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, 38.000, },
{10.900, 12.600, 16.600, 20.200, 26.400, 26.700, 27.000, 28.500, 30.000, 30.400, 30.800, 31.100, 31.500, 31.900, 32.300, 33.000, },
{10.800, 12.400, 16.800, 19.600, 23.900, 24.200, 24.500, 26.000, 27.500, 27.900, 28.300, 28.600, 29.000, 29.400, 29.800, 30.500, },
{14.300, 14.900, 16.500, 18.800, 20.700, 21.700, 22.000, 23.500, 25.000, 25.400, 25.800, 26.100, 26.500, 26.900, 27.300, 28.000, },
{14.000, 14.600, 15.600, 17.100, 18.500, 19.200, 19.500, 21.000, 22.500, 22.900, 23.300, 23.600, 24.000, 24.400, 24.800, 25.500, },
{12.900, 13.300, 14.000, 15.100, 16.100, 16.700, 17.000, 18.500, 20.000, 20.400, 20.800, 21.100, 21.500, 21.900, 22.300, 23.000, },
{11.700, 12.000, 12.400, 13.100, 13.700, 14.200, 14.500, 16.000, 17.500, 17.900, 18.300, 18.600, 19.000, 19.400, 19.800, 20.500, },
{10.400, 10.500, 10.800, 11.100, 11.500, 11.900, 12.000, 13.500, 15.000, 15.400, 15.800, 16.100, 16.500, 16.900, 17.300, 18.000, },
{8.800, 9.000, 9.100, 9.400, 9.700, 10.000, 10.300, 11.800, 13.300, 13.700, 14.100, 14.400, 14.800, 15.200, 15.600, 16.300, },
{6.700, 6.800, 7.500, 7.700, 8.000, 8.400, 8.700, 10.200, 11.700, 12.100, 12.500, 12.800, 13.200, 13.600, 14.000, 14.700, },
{1.800, 5.600, 6.200, 6.500, 6.800, 7.100, 7.000, 8.500, 10.000, 10.400, 10.800, 11.100, 11.500, 11.900, 12.300, 13.000, },
{-1.200, 2.600, 3.200, 3.600, 4.100, 5.000, 7.100, 7.800, 8.400, 9.000, 9.400, 9.500, 9.700, 9.800, 10.000, 10.000, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{52.000, 54.000, 54.000, 56.000, 61.000, 55.000, 55.000, 65.000, 65.000, 60.000, 60.000, 60.000, 60.000, 60.000, 60.000, 60.000, },
{51.500, 54.500, 54.400, 56.000, 61.000, 68.100, 66.800, 67.600, 68.200, 63.400, 63.400, 63.400, 63.400, 63.400, 63.400, 63.400, },
{52.500, 55.400, 57.700, 62.200, 62.800, 65.800, 69.600, 71.100, 72.200, 67.600, 67.600, 67.600, 67.600, 67.600, 67.600, 67.600, },
{54.200, 56.300, 59.000, 64.300, 65.700, 68.400, 71.400, 72.900, 73.900, 70.500, 70.400, 70.400, 70.300, 70.200, 70.200, 70.200, },
{54.400, 56.700, 59.500, 65.200, 71.800, 75.400, 75.300, 73.800, 74.700, 72.600, 72.500, 72.300, 72.200, 72.100, 72.000, 72.000, },
{55.100, 58.100, 61.400, 67.900, 75.400, 77.300, 75.000, 76.300, 77.200, 77.500, 77.000, 76.500, 76.000, 75.600, 75.400, 75.400, },
{55.800, 59.400, 63.000, 70.100, 73.200, 75.400, 77.800, 78.900, 79.800, 79.100, 78.400, 77.700, 77.000, 76.400, 76.100, 76.100, },
{56.000, 66.200, 70.600, 74.200, 74.100, 76.000, 79.900, 84.100, 82.200, 79.600, 78.900, 78.200, 77.500, 76.900, 76.600, 76.600, },
{58.500, 67.400, 69.200, 75.500, 78.300, 79.900, 81.700, 83.700, 84.700, 82.100, 81.400, 80.700, 80.000, 79.400, 79.100, 79.100, },
{52.900, 70.000, 71.900, 75.900, 79.800, 81.900, 83.700, 85.600, 86.100, 83.600, 83.000, 82.200, 81.600, 81.000, 80.700, 83.700, },
{50.700, 71.000, 73.000, 77.300, 81.600, 83.900, 85.700, 87.600, 87.900, 85.400, 84.800, 84.000, 83.400, 82.800, 82.500, 85.500, },
{53.700, 74.000, 76.000, 80.300, 84.600, 86.900, 88.700, 90.600, 90.900, 88.400, 87.800, 87.000, 86.400, 85.800, 85.500, 88.500, },
{56.700, 77.000, 79.000, 83.300, 87.600, 89.900, 91.700, 93.600, 93.900, 91.400, 90.800, 90.000, 89.400, 88.800, 88.500, 91.500, },
{59.700, 80.000, 82.000, 86.300, 90.600, 92.900, 94.700, 96.600, 96.900, 94.400, 93.800, 93.000, 92.400, 91.800, 91.500, 94.500, },
{62.700, 83.000, 85.000, 89.300, 93.600, 95.900, 97.700, 99.600, 99.900, 97.400, 96.800, 96.000, 95.400, 94.800, 94.500, 97.500, },
{65.700, 86.000, 88.000, 92.300, 96.600, 98.900, 100.700, 102.600, 102.900, 100.400, 99.800, 99.000, 98.400, 97.800, 97.500, 100.500, },
};
copyTable(config->veTable, hardCodedveTable);
}
static void cannedpedalToTpsTable() {
static const float hardCodedpedalToTpsTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{8.000, 8.000, 8.000, 8.000, 8.000, 8.000, 8.000, 8.000, },
{17.000, 17.000, 17.000, 17.000, 17.000, 17.000, 17.000, 17.000, },
{26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, },
{34.000, 34.000, 34.000, 34.000, 34.000, 34.000, 34.000, 34.000, },
{43.000, 43.000, 43.000, 43.000, 43.000, 43.000, 43.000, 43.000, },
{86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, },
{100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, },
};
copyTable(config->pedalToTpsTable, hardCodedpedalToTpsTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, },
{13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, },
{13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, },
{12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, },
{12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, },
{12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, },
{11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, },
{11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, },
{11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, },
{10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}

View File

@ -0,0 +1,206 @@
# M52-comparing-against-current-M52-default
// canned tune https://rusefi.com/online/view.php?msq=1591
```
// default 0.0
engineConfiguration->trigger.customTotalToothCount = 3;
// default 0.0
engineConfiguration->globalTriggerAngleOffset = 320;
// default "Single Tooth"
engineConfiguration->vvtMode[0] = VVT_INACTIVE;
// default 40.0
engineConfiguration->camDecoder2jzPrecision = 25;
// default 450.0
engineConfiguration->vvtOffsets[0] = 10;
// default "false"
engineConfiguration->overrideVvtTriggerGaps = true;
// default 0.0
engineConfiguration->gapVvtTrackingLengthOverride = 2;
// default 0.0
engineConfiguration->triggerVVTGapOverrideFrom[0] = 0.3;
// default 0.0
engineConfiguration->triggerVVTGapOverrideTo[0] = 0.6;
// default 0.0
engineConfiguration->triggerVVTGapOverrideFrom[1] = 2.1;
// default 0.0
engineConfiguration->triggerVVTGapOverrideTo[1] = 2.5;
// default "false"
engineConfiguration->verboseVVTDecoding = true;
// default "false"
engineConfiguration->verboseTriggerSynchDetails = true;
// default 200.0
engineConfiguration->injector.flow = 350;
// default 300.0
engineConfiguration->fuelReferencePressure = 100;
// default 0.0
engineConfiguration->cylinderBankSelect[0] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[1] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[2] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[3] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[4] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[5] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[6] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[7] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[8] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[9] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[10] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[11] = 1;
// default 4.0
engineConfiguration->benchTestOnTime = 5;
// default 0.0
engineConfiguration->tpsMin = 120;
// default 1000.0
engineConfiguration->tpsMax = 791;
// default 300.0
engineConfiguration->idle.solenoidFrequency = 200;
// default 3.0
engineConfiguration->idleStepperReactionTime = 10;
// default 200.0
engineConfiguration->idleStepperTotalSteps = 150;
// default 15.0
engineConfiguration->etbIdleThrottleRange = 5;
// default -20.0
engineConfiguration->idleRpmPid.minValue = 0;
// default 20.0
engineConfiguration->idleRpmPid.maxValue = 99;
// default 15.0
engineConfiguration->acIdleExtraOffset = 0;
// default 2.0
engineConfiguration->fan1ExtraIdle = 0;
// default 2.0
engineConfiguration->fan2ExtraIdle = 0;
// default 2.0
engineConfiguration->iacByTpsTaper = 15;
// default 5.0
engineConfiguration->idlePidDeactivationTpsThreshold = 1;
// default "false"
engineConfiguration->useSeparateAdvanceForIdle = true;
// default 0.0
engineConfiguration->iacByTpsHoldTime = 1.5;
// default 0.0
engineConfiguration->iacByTpsDecayTime = 3.5;
// default "false"
engineConfiguration->useIdleTimingPidControl = true;
// default 0.1
engineConfiguration->idleTimingPid.pFactor = 0.09;
// default 0.0
engineConfiguration->idleTimingPid.dFactor = 5.0E-4;
// default -10.0
engineConfiguration->idleTimingPid.minValue = -5;
// default 10.0
engineConfiguration->idleTimingPid.maxValue = 5;
// default "false"
engineConfiguration->disableFan1WhenStopped = true;
// default 0.5
engineConfiguration->acDelay = 0;
// default 4.0
engineConfiguration->startUpFuelPumpDuration = 2;
// default 0.0
engineConfiguration->warningPeriod = 10;
// default 20.0
engineConfiguration->knockRetardAggression = 0;
// default 3.0
engineConfiguration->knockRetardReapplyRate = 0;
// default 500.0
engineConfiguration->vvtControlMinRpm = 800;
// default "Speed Density"
engineConfiguration->fuelAlgorithm = LM_ALPHA_N;
// default "MAP"
engineConfiguration->debugMode = DBG_22;
// default "yes"
engineConfiguration->cutFuelOnHardLimit = no;
// default 7000.0
engineConfiguration->rpmHardLimit = 10000;
// default 300.0
engineConfiguration->boostCutPressure = 0;
// default 0.0
engineConfiguration->rpmSoftLimitWindowSize = 200;
// default 0.0
engineConfiguration->rpmSoftLimitTimingRetard = 10;
// default 250.0
engineConfiguration->etbRevLimitRange = 0;
// default "Simultaneous"
engineConfiguration->crankingInjectionMode = IM_BATCH;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 6.0
engineConfiguration->crankingTimingAngle = 0;
// default 0.5
engineConfiguration->primingDelay = 0.7;
// default "true"
engineConfiguration->isCylinderCleanupEnabled = false;
// default 550.0
engineConfiguration->cranking.rpm = 400;
// default 40.0
engineConfiguration->tpsAccelEnrichmentThreshold = 200;
// default 0.0
engineConfiguration->tpsDecelEnleanmentThreshold = 7;
// default 0.0
engineConfiguration->tpsAccelFractionPeriod = 3;
// default 0.0
engineConfiguration->tpsAccelFractionDivisor = 0.3;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
engineConfiguration->boostControlMinTps = 0;
// default 110.0
engineConfiguration->boostControlMinMap = 0;
// default 400.0
engineConfiguration->engineChartSize = 300;
// default "false"
engineConfiguration->coastingFuelCutEnabled = true;
// default 60.0
engineConfiguration->coastingFuelCutClt = -10;
// default 1500.0
engineConfiguration->coastingFuelCutRpmHigh = 2600;
// default 1300.0
engineConfiguration->coastingFuelCutRpmLow = 2500;
// default 30.0
engineConfiguration->coastingFuelCutMap = 60;
// default 0.0
engineConfiguration->dfcoDelay = 2.5;
// default 5.0
engineConfiguration->acrRevolutions = 0;
// default "true"
engineConfiguration->watchOutForLinearTime = false;
// default 250.0
engineConfiguration->gppwm[3].pwmFrequency = 100;
// default 3.0
engineConfiguration->hpfpCamLobes = 0;
// default 10.0
engineConfiguration->hpfpPeakPos = 0;
// default 0.29
engineConfiguration->hpfpPumpVolume = 0;
// default 10.0
engineConfiguration->hpfpMinAngle = 0;
// default 30.0
engineConfiguration->hpfpActivationAngle = 0;
// default 2000.0
engineConfiguration->hpfpTargetDecay = 0;
// default 0.01
engineConfiguration->hpfpPidP = 0;
// default 3.0E-4
engineConfiguration->hpfpPidI = 0;
cannedtpsTpsAccelTable();
cannedscriptTable4();
cannedignitionTable();
cannedveTable();
cannedmapEstimateTable();
cannedlambdaTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -0,0 +1,140 @@
static void cannedtpsTpsAccelTable() {
static const float hardCodedtpsTpsAccelTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{4.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{6.800, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{9.200, 6.800, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.200, 9.200, 6.800, 4.000, 0.000, 0.000, 0.000, 0.000, },
{12.800, 11.200, 9.200, 6.800, 4.000, 0.000, 0.000, 0.000, },
{14.000, 12.800, 11.200, 9.200, 6.800, 4.000, 0.000, 0.000, },
{14.800, 14.000, 12.800, 11.200, 9.200, 6.800, 4.000, 0.000, },
};
copyTable(config->tpsTpsAccelTable, hardCodedtpsTpsAccelTable);
}
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{10.000, 5.000, -5.000, 0.000, 2.100, 2.900, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 0.200, 20.600, 41.000, 41.000, },
{10.000, 5.000, -5.000, 0.000, 2.100, 2.900, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 0.200, 20.600, 41.000, 41.000, },
{8.000, 14.000, 22.100, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, },
{8.000, 14.000, 22.100, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 14.000, 22.100, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.900, 22.000, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.800, 21.900, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.800, 21.900, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.700, 21.900, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.600, 21.800, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{10.700, 13.500, 21.700, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 39.000, 39.000, },
{15.900, 13.400, 21.700, 27.200, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 29.000, 29.000, },
{15.400, 12.800, 21.300, 27.200, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, },
{15.000, 12.300, 20.300, 25.300, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.400, 26.800, 27.000, 27.000, 27.000, 27.000, },
{14.700, 11.900, 20.000, 25.300, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.400, 26.800, 27.000, 27.000, 27.000, 27.000, },
{14.300, 11.400, 19.700, 25.300, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.400, 26.800, 27.000, 27.000, 27.000, 27.000, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{20.000, 20.000, 20.000, 20.000, 25.000, 25.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 25.000, 25.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 20.000, 20.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 20.000, 20.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 20.900, 21.000, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, },
{20.000, 20.000, 20.000, 20.000, 21.900, 21.900, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, },
{19.500, 19.500, 19.500, 19.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, },
{22.100, 22.100, 22.100, 22.100, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, },
{44.700, 44.700, 44.700, 44.700, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, },
{50.000, 50.000, 50.000, 50.000, 17.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, },
{50.000, 50.000, 50.000, 50.000, 20.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, },
{50.000, 50.000, 50.000, 50.000, 22.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, },
{50.000, 50.000, 50.000, 50.000, 25.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, },
{50.000, 50.000, 50.000, 50.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, },
{65.000, 65.000, 65.000, 65.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, },
{65.000, 65.000, 65.000, 65.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, },
};
copyTable(config->veTable, hardCodedveTable);
}
static void cannedmapEstimateTable() {
static const float hardCodedmapEstimateTable[16][16] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->mapEstimateTable, hardCodedmapEstimateTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, },
{13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, },
{13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, },
{12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, },
{12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, },
{12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, },
{11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, },
{11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, },
{11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, },
{10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}

View File

@ -0,0 +1,212 @@
# M52-comparing-against-global-defaults
// canned tune https://rusefi.com/online/view.php?msq=1591
```
// default "Single Coil"
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
// default 4.0
engineConfiguration->cylindersCount = 6;
// default 2.0
engineConfiguration->displacement = 3;
// default 0.0
engineConfiguration->trigger.customTotalToothCount = 3;
// default 0.0
engineConfiguration->globalTriggerAngleOffset = 320;
// default "Single Tooth"
engineConfiguration->vvtMode[0] = VVT_INACTIVE;
// default 40.0
engineConfiguration->camDecoder2jzPrecision = 25;
// default 450.0
engineConfiguration->vvtOffsets[0] = 10;
// default "false"
engineConfiguration->overrideVvtTriggerGaps = true;
// default 0.0
engineConfiguration->gapVvtTrackingLengthOverride = 2;
// default 0.0
engineConfiguration->triggerVVTGapOverrideFrom[0] = 0.3;
// default 0.0
engineConfiguration->triggerVVTGapOverrideTo[0] = 0.6;
// default 0.0
engineConfiguration->triggerVVTGapOverrideFrom[1] = 2.1;
// default 0.0
engineConfiguration->triggerVVTGapOverrideTo[1] = 2.5;
// default "false"
engineConfiguration->verboseVVTDecoding = true;
// default "false"
engineConfiguration->verboseTriggerSynchDetails = true;
// default 200.0
engineConfiguration->injector.flow = 350;
// default 300.0
engineConfiguration->fuelReferencePressure = 100;
// default 0.0
engineConfiguration->cylinderBankSelect[0] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[1] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[2] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[3] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[4] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[5] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[6] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[7] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[8] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[9] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[10] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[11] = 1;
// default 4.0
engineConfiguration->benchTestOnTime = 5;
// default 0.0
engineConfiguration->tpsMin = 120;
// default 1000.0
engineConfiguration->tpsMax = 791;
// default 300.0
engineConfiguration->idle.solenoidFrequency = 200;
// default 3.0
engineConfiguration->idleStepperReactionTime = 10;
// default 200.0
engineConfiguration->idleStepperTotalSteps = 150;
// default 15.0
engineConfiguration->etbIdleThrottleRange = 5;
// default -20.0
engineConfiguration->idleRpmPid.minValue = 0;
// default 20.0
engineConfiguration->idleRpmPid.maxValue = 99;
// default 15.0
engineConfiguration->acIdleExtraOffset = 0;
// default 2.0
engineConfiguration->fan1ExtraIdle = 0;
// default 2.0
engineConfiguration->fan2ExtraIdle = 0;
// default 2.0
engineConfiguration->iacByTpsTaper = 15;
// default 5.0
engineConfiguration->idlePidDeactivationTpsThreshold = 1;
// default "false"
engineConfiguration->useSeparateAdvanceForIdle = true;
// default 0.0
engineConfiguration->iacByTpsHoldTime = 1.5;
// default 0.0
engineConfiguration->iacByTpsDecayTime = 3.5;
// default "false"
engineConfiguration->useIdleTimingPidControl = true;
// default 0.1
engineConfiguration->idleTimingPid.pFactor = 0.09;
// default 0.0
engineConfiguration->idleTimingPid.dFactor = 5.0E-4;
// default -10.0
engineConfiguration->idleTimingPid.minValue = -5;
// default 10.0
engineConfiguration->idleTimingPid.maxValue = 5;
// default "false"
engineConfiguration->disableFan1WhenStopped = true;
// default 0.5
engineConfiguration->acDelay = 0;
// default 4.0
engineConfiguration->startUpFuelPumpDuration = 2;
// default 0.0
engineConfiguration->warningPeriod = 10;
// default 20.0
engineConfiguration->knockRetardAggression = 0;
// default 3.0
engineConfiguration->knockRetardReapplyRate = 0;
// default 550.0
engineConfiguration->vvtControlMinRpm = 800;
// default "Speed Density"
engineConfiguration->fuelAlgorithm = LM_ALPHA_N;
// default "MAP"
engineConfiguration->debugMode = DBG_22;
// default "yes"
engineConfiguration->cutFuelOnHardLimit = no;
// default 7000.0
engineConfiguration->rpmHardLimit = 10000;
// default 300.0
engineConfiguration->boostCutPressure = 0;
// default 0.0
engineConfiguration->rpmSoftLimitWindowSize = 200;
// default 0.0
engineConfiguration->rpmSoftLimitTimingRetard = 10;
// default 250.0
engineConfiguration->etbRevLimitRange = 0;
// default "Simultaneous"
engineConfiguration->crankingInjectionMode = IM_BATCH;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 6.0
engineConfiguration->crankingTimingAngle = 0;
// default 0.5
engineConfiguration->primingDelay = 0.7;
// default "true"
engineConfiguration->isCylinderCleanupEnabled = false;
// default 550.0
engineConfiguration->cranking.rpm = 400;
// default 40.0
engineConfiguration->tpsAccelEnrichmentThreshold = 200;
// default 0.0
engineConfiguration->tpsDecelEnleanmentThreshold = 7;
// default 0.0
engineConfiguration->tpsAccelFractionPeriod = 3;
// default 0.0
engineConfiguration->tpsAccelFractionDivisor = 0.3;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
engineConfiguration->boostControlMinTps = 0;
// default 110.0
engineConfiguration->boostControlMinMap = 0;
// default 400.0
engineConfiguration->engineChartSize = 300;
// default "false"
engineConfiguration->coastingFuelCutEnabled = true;
// default 60.0
engineConfiguration->coastingFuelCutClt = -10;
// default 1500.0
engineConfiguration->coastingFuelCutRpmHigh = 2600;
// default 1300.0
engineConfiguration->coastingFuelCutRpmLow = 2500;
// default 30.0
engineConfiguration->coastingFuelCutMap = 60;
// default 0.0
engineConfiguration->dfcoDelay = 2.5;
// default 5.0
engineConfiguration->acrRevolutions = 0;
// default "true"
engineConfiguration->watchOutForLinearTime = false;
// default 250.0
engineConfiguration->gppwm[3].pwmFrequency = 100;
// default 3.0
engineConfiguration->hpfpCamLobes = 0;
// default 10.0
engineConfiguration->hpfpPeakPos = 0;
// default 0.29
engineConfiguration->hpfpPumpVolume = 0;
// default 10.0
engineConfiguration->hpfpMinAngle = 0;
// default 30.0
engineConfiguration->hpfpActivationAngle = 0;
// default 2000.0
engineConfiguration->hpfpTargetDecay = 0;
// default 0.01
engineConfiguration->hpfpPidP = 0;
// default 3.0E-4
engineConfiguration->hpfpPidI = 0;
cannedtpsTpsAccelTable();
cannedscriptTable4();
cannedignitionTable();
cannedveTable();
cannedmapEstimateTable();
cannedlambdaTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -0,0 +1,140 @@
static void cannedtpsTpsAccelTable() {
static const float hardCodedtpsTpsAccelTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{4.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{6.800, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{9.200, 6.800, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.200, 9.200, 6.800, 4.000, 0.000, 0.000, 0.000, 0.000, },
{12.800, 11.200, 9.200, 6.800, 4.000, 0.000, 0.000, 0.000, },
{14.000, 12.800, 11.200, 9.200, 6.800, 4.000, 0.000, 0.000, },
{14.800, 14.000, 12.800, 11.200, 9.200, 6.800, 4.000, 0.000, },
};
copyTable(config->tpsTpsAccelTable, hardCodedtpsTpsAccelTable);
}
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{10.000, 5.000, -5.000, 0.000, 2.100, 2.900, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 0.200, 20.600, 41.000, 41.000, },
{10.000, 5.000, -5.000, 0.000, 2.100, 2.900, -20.000, -20.000, -20.000, -20.000, -20.000, -20.000, 0.200, 20.600, 41.000, 41.000, },
{8.000, 14.000, 22.100, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, },
{8.000, 14.000, 22.100, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 14.000, 22.100, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.900, 22.000, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.800, 21.900, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.800, 21.900, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.700, 21.900, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{8.000, 13.600, 21.800, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 40.000, 40.000, },
{10.700, 13.500, 21.700, 36.200, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 37.000, 39.000, 39.000, },
{15.900, 13.400, 21.700, 27.200, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 29.000, 29.000, },
{15.400, 12.800, 21.300, 27.200, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, },
{15.000, 12.300, 20.300, 25.300, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.400, 26.800, 27.000, 27.000, 27.000, 27.000, },
{14.700, 11.900, 20.000, 25.300, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.400, 26.800, 27.000, 27.000, 27.000, 27.000, },
{14.300, 11.400, 19.700, 25.300, 26.000, 26.000, 26.000, 26.000, 26.000, 26.000, 26.400, 26.800, 27.000, 27.000, 27.000, 27.000, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{20.000, 20.000, 20.000, 20.000, 25.000, 25.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 25.000, 25.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 10.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 20.000, 20.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 20.000, 20.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, 15.000, },
{20.000, 20.000, 20.000, 20.000, 20.900, 21.000, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, 16.100, },
{20.000, 20.000, 20.000, 20.000, 21.900, 21.900, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, 17.100, },
{19.500, 19.500, 19.500, 19.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, 22.500, },
{22.100, 22.100, 22.100, 22.100, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, 23.800, },
{44.700, 44.700, 44.700, 44.700, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, 25.000, },
{50.000, 50.000, 50.000, 50.000, 17.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, 27.500, },
{50.000, 50.000, 50.000, 50.000, 20.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, },
{50.000, 50.000, 50.000, 50.000, 22.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, 32.500, },
{50.000, 50.000, 50.000, 50.000, 25.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, 35.000, },
{50.000, 50.000, 50.000, 50.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, },
{65.000, 65.000, 65.000, 65.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, },
{65.000, 65.000, 65.000, 65.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, 44.000, },
};
copyTable(config->veTable, hardCodedveTable);
}
static void cannedmapEstimateTable() {
static const float hardCodedmapEstimateTable[16][16] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->mapEstimateTable, hardCodedmapEstimateTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, },
{13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, },
{13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, },
{12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, },
{12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, },
{12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, },
{11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, },
{11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, },
{11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, },
{10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
{1.200, 1.000, 1.000, 1.000, 1.000, 1.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}

View File

@ -0,0 +1,155 @@
# PB-comparing-against-current-PB-default
// canned tune https://rusefi.com/online/view.php?msq=1576
```
// default "Center of injection"
engineConfiguration->injectionTimingMode = End;
// default "Individual Coils"
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
// default "false"
engineConfiguration->twoWireBatchIgnition = true;
// default "false"
engineConfiguration->isForcedInduction = true;
// default 40.0
engineConfiguration->camDecoder2jzPrecision = 25;
// default 450.0
engineConfiguration->vvtOffsets[0] = 227;
// default 0.0
engineConfiguration->vvtOffsets[1] = 50;
// default 1214.0
engineConfiguration->injector.flow = 1000;
// default 0.0
engineConfiguration->cylinderBankSelect[0] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[1] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[2] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[3] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[4] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[5] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[6] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[7] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[8] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[9] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[10] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[11] = 1;
// default 98.0
engineConfiguration->tpsMin = 100;
// default 926.0
engineConfiguration->tpsMax = 928;
// default 891.0
engineConfiguration->tps1SecondaryMin = 905;
// default 69.0
engineConfiguration->tps1SecondaryMax = 74;
// default 0.73
engineConfiguration->throttlePedalUpVoltage = 0.811432;
// default 0.34
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.771252;
// default 1.86
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.28;
// default 300.0
engineConfiguration->idle.solenoidFrequency = 200;
// default 6.0
engineConfiguration->etbIdleThrottleRange = 10;
// default 15.0
engineConfiguration->acIdleExtraOffset = 0;
// default 2.0
engineConfiguration->fan2ExtraIdle = 0;
// default 0.0
engineConfiguration->iacByTpsHoldTime = 2;
// default 0.0
engineConfiguration->iacByTpsDecayTime = 2;
// default 95.0
engineConfiguration->fanOnTemperature = 81;
// default 91.0
engineConfiguration->fanOffTemperature = 75;
// default "false"
engineConfiguration->enableFan1WithAc = true;
// default "false"
engineConfiguration->disableFan1WhenStopped = true;
// default 4.0
engineConfiguration->startUpFuelPumpDuration = 2;
// default 3.0
engineConfiguration->startCrankingDuration = 5;
// default 0.0
engineConfiguration->startButtonSuppressOnStartUpMs = 30;
// default 0.0
engineConfiguration->warningPeriod = 10;
// default "true"
engineConfiguration->enableSoftwareKnock = false;
// default 20.0
engineConfiguration->knockRetardAggression = 0;
// default 3.0
engineConfiguration->knockRetardReapplyRate = 0;
// default 500.0
engineConfiguration->vvtControlMinRpm = 550;
// default "advance"
engineConfiguration->invertVvtControlExhaust = retard;
// default 0.005
engineConfiguration->auxPid[0].iFactor = 10;
// default 0.0
engineConfiguration->auxPid[0].dFactor = 0.005;
// default 0.0
engineConfiguration->auxPid[1].offset = 33;
// default 0.0
engineConfiguration->auxPid[1].pFactor = 2;
// default 0.0
engineConfiguration->auxPid[1].iFactor = 5;
// default 0.0
engineConfiguration->auxPid[1].dFactor = 0.05;
// default "MAP"
engineConfiguration->debugMode = DBG_22;
// default 300.0
engineConfiguration->boostCutPressure = 220;
// default 250.0
engineConfiguration->etbRevLimitRange = 0;
// default 27.0
engineConfiguration->cranking.baseFuel = 20;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 0.0
engineConfiguration->wwaeTau = 0.3;
// default 0.0
engineConfiguration->wwaeBeta = 0.3;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
engineConfiguration->boostControlMinTps = 0;
// default 110.0
engineConfiguration->boostControlMinMap = 0;
// default 8.8944
engineConfiguration->etb.pFactor = 5.235054;
// default 70.2307
engineConfiguration->etb.iFactor = 65.98008;
// default 0.1855
engineConfiguration->etb.dFactor = 0.0673251;
// default 400.0
engineConfiguration->engineChartSize = 300;
// default 5.0
engineConfiguration->acrRevolutions = 0;
// default "NONE"
engineConfiguration->hpfpCam = HPFP_CAM_EX1;
// default 10.0
engineConfiguration->hpfpPeakPos = -40;
// default 10.0
engineConfiguration->mc33_hpfp_i_peak = 11.5;
// default 3.0E-4
engineConfiguration->hpfpPidI = 5.0E-4;
cannedscriptTable4();
cannedinjectionPhase();
cannedlambdaTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -0,0 +1,82 @@
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedinjectionPhase() {
static const float hardCodedinjectionPhase[16][16] = {
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -180.000, -180.000, -180.000, -180.000, -180.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -180.000, -180.000, -180.000, -180.000, -180.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -180.000, -180.000, -180.000, -180.000, -180.000, },
};
copyTable(config->injectionPhase, hardCodedinjectionPhase);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, },
{13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, },
{13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, },
{12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, },
{12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, },
{12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, },
{11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, },
{11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, },
{11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, },
{10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}

View File

@ -0,0 +1,199 @@
# PB-comparing-against-global-defaults
// canned tune https://rusefi.com/online/view.php?msq=1576
```
// default "Single Coil"
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
// default "false"
engineConfiguration->twoWireBatchIgnition = true;
// default 2.0
engineConfiguration->displacement = 1.6;
// default "false"
engineConfiguration->isForcedInduction = true;
// default 0.0
engineConfiguration->globalTriggerAngleOffset = 90;
// default 40.0
engineConfiguration->camDecoder2jzPrecision = 25;
// default "Inactive"
engineConfiguration->vvtMode[1] = VVT_SINGLE_TOOTH;
// default 450.0
engineConfiguration->vvtOffsets[0] = 227;
// default 0.0
engineConfiguration->vvtOffsets[1] = 50;
// default "false"
engineConfiguration->isPhaseSyncRequiredForIgnition = true;
// default 200.0
engineConfiguration->injector.flow = 1000;
// default "Low"
engineConfiguration->injectorPressureType = IPT_High;
// default "None"
engineConfiguration->injectorCompensationMode = ICM_SensedRailPressure;
// default 300.0
engineConfiguration->fuelReferencePressure = 10000;
// default 0.0
engineConfiguration->cylinderBankSelect[0] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[1] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[2] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[3] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[4] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[5] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[6] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[7] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[8] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[9] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[10] = 1;
// default 0.0
engineConfiguration->cylinderBankSelect[11] = 1;
// default 0.0
engineConfiguration->tpsMin = 100;
// default 1000.0
engineConfiguration->tpsMax = 928;
// default 1000.0
engineConfiguration->tps1SecondaryMin = 905;
// default 0.0
engineConfiguration->tps1SecondaryMax = 74;
// default 0.0
engineConfiguration->throttlePedalUpVoltage = 0.811432;
// default 5.0
engineConfiguration->throttlePedalWOTVoltage = 4;
// default 5.0
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.771252;
// default 0.0
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.28;
// default 0.0
engineConfiguration->highPressureFuel.v1 = 0.5;
// default 0.0
engineConfiguration->highPressureFuel.v2 = 4.5;
// default 0.0
engineConfiguration->highPressureFuel.value2 = 20000;
// default 0.0
engineConfiguration->mapLowValueVoltage = 0.79;
// default 5.0
engineConfiguration->mapHighValueVoltage = 4;
// default "false"
engineConfiguration->enableAemXSeries = true;
// default 300.0
engineConfiguration->idle.solenoidFrequency = 200;
// default 15.0
engineConfiguration->etbIdleThrottleRange = 10;
// default 15.0
engineConfiguration->acIdleExtraOffset = 0;
// default 2.0
engineConfiguration->fan2ExtraIdle = 0;
// default 0.0
engineConfiguration->iacByTpsHoldTime = 2;
// default 0.0
engineConfiguration->iacByTpsDecayTime = 2;
// default 95.0
engineConfiguration->fanOnTemperature = 81;
// default 91.0
engineConfiguration->fanOffTemperature = 75;
// default "false"
engineConfiguration->enableFan1WithAc = true;
// default "false"
engineConfiguration->disableFan1WhenStopped = true;
// default 4.0
engineConfiguration->startUpFuelPumpDuration = 2;
// default 3.0
engineConfiguration->startCrankingDuration = 5;
// default 0.0
engineConfiguration->startButtonSuppressOnStartUpMs = 30;
// default 0.0
engineConfiguration->warningPeriod = 10;
// default 20.0
engineConfiguration->knockRetardAggression = 0;
// default 3.0
engineConfiguration->knockRetardReapplyRate = 0;
// default "advance"
engineConfiguration->invertVvtControlExhaust = retard;
// default 0.005
engineConfiguration->auxPid[0].iFactor = 10;
// default 0.0
engineConfiguration->auxPid[0].dFactor = 0.005;
// default 0.0
engineConfiguration->auxPid[1].offset = 33;
// default 0.0
engineConfiguration->auxPid[1].pFactor = 2;
// default 0.0
engineConfiguration->auxPid[1].iFactor = 5;
// default 0.0
engineConfiguration->auxPid[1].dFactor = 0.05;
// default 0.0
engineConfiguration->totalGearsCount = 5;
// default 0.0
engineConfiguration->gearRatio[0] = 12;
// default 0.0
engineConfiguration->gearRatio[1] = 6;
// default 0.0
engineConfiguration->gearRatio[2] = 4.4;
// default 0.0
engineConfiguration->gearRatio[3] = 2.4;
// default 0.0
engineConfiguration->gearRatio[4] = 1;
// default "MAP"
engineConfiguration->debugMode = DBG_22;
// default 300.0
engineConfiguration->boostCutPressure = 220;
// default 250.0
engineConfiguration->etbRevLimitRange = 0;
// default "Simultaneous"
engineConfiguration->crankingInjectionMode = IM_SEQUENTIAL;
// default 27.0
engineConfiguration->cranking.baseFuel = 20;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
engineConfiguration->boostControlMinTps = 0;
// default 110.0
engineConfiguration->boostControlMinMap = 0;
// default 1.0
engineConfiguration->etb.pFactor = 5.235054;
// default 10.0
engineConfiguration->etb.iFactor = 65.98008;
// default 0.05
engineConfiguration->etb.dFactor = 0.0673251;
// default "false"
engineConfiguration->disableEtbWhenEngineStopped = true;
// default 400.0
engineConfiguration->engineChartSize = 300;
// default 5.0
engineConfiguration->acrRevolutions = 0;
// default "false"
engineConfiguration->rethrowHardFault = true;
// default 3.0
engineConfiguration->hpfpCamLobes = 4;
// default "NONE"
engineConfiguration->hpfpCam = HPFP_CAM_EX1;
// default 10.0
engineConfiguration->hpfpPeakPos = -40;
// default 5.0
engineConfiguration->mc33_hpfp_i_peak = 11.5;
// default 3.0
engineConfiguration->mc33_hpfp_i_hold = 4;
// default 3.0E-4
engineConfiguration->hpfpPidI = 5.0E-4;
cannedvvtTable1();
cannedvvtTable2();
cannedscriptTable4();
cannedignitionTable();
cannedveTable();
cannedinjectionPhase();
cannedlambdaTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -0,0 +1,154 @@
static void cannedvvtTable1() {
static const float hardCodedvvtTable1[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 30.000, 35.000, 35.000, 35.000, 30.000, 20.000, 10.000, },
{0.000, 30.000, 35.000, 35.000, 35.000, 30.000, 20.000, 10.000, },
{0.000, 30.000, 35.000, 35.000, 35.000, 30.000, 20.000, 10.000, },
{0.000, 30.000, 35.000, 35.000, 35.000, 30.000, 20.000, 10.000, },
};
copyTable(config->vvtTable1, hardCodedvvtTable1);
}
static void cannedvvtTable2() {
static const float hardCodedvvtTable2[8][8] = {
{50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, 40.000, },
{50.000, 50.000, 50.000, 50.000, 40.000, 40.000, 40.000, 40.000, },
};
copyTable(config->vvtTable2, hardCodedvvtTable2);
}
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{12.200, 14.200, 18.100, 23.300, 29.900, 36.400, 39.200, 40.000, -10.000, -10.000, -10.000, -10.000, -10.000, -10.000, -10.000, -10.000, },
{12.100, 14.000, 17.800, 22.900, 29.300, 35.600, 39.000, 39.800, -10.000, -10.000, -10.000, -10.000, -10.000, -10.000, -10.000, -10.000, },
{11.800, 13.700, 10.000, 14.900, 28.600, 34.800, 38.700, 39.500, 39.500, 39.500, 39.500, 39.500, 41.000, 41.000, 41.000, 41.000, },
{11.600, 13.400, 12.300, 17.100, 28.000, 33.900, 38.500, 39.300, 39.300, 39.300, 39.300, 39.300, 40.000, 40.000, 40.000, 40.000, },
{4.400, 6.200, 9.700, 14.400, 20.300, 26.100, 31.200, 32.000, 32.000, 32.000, 32.000, 32.000, 32.000, 32.000, 32.000, 32.000, },
{0.200, 1.900, 5.300, 9.800, 11.600, 15.600, 19.100, 20.100, 20.600, 20.700, 20.900, 21.000, 21.100, 21.200, 21.400, 21.600, },
{-0.100, 1.600, 5.600, 9.200, 7.900, 10.000, 11.900, 13.200, 14.200, 14.500, 14.700, 14.900, 15.200, 15.500, 15.700, 16.200, },
{-3.900, -2.200, 1.600, 5.200, 6.200, 6.500, 6.800, 8.300, 9.800, 10.200, 10.600, 10.900, 11.300, 11.700, 12.100, 12.800, },
{-5.900, -4.300, -0.700, 2.600, 3.100, 3.500, 3.800, 5.300, 6.800, 7.200, 7.600, 7.900, 8.300, 8.700, 9.100, 9.800, },
{-7.800, -6.500, -3.100, 0.100, 0.100, 0.600, 0.900, 2.400, 3.900, 4.300, 4.700, 5.000, 5.400, 5.800, 6.200, 6.900, },
{-9.800, -8.600, -5.500, -2.500, -3.000, -2.400, -2.100, -0.600, 0.900, 1.300, 1.700, 2.000, 2.400, 2.800, 3.200, 3.900, },
{-11.800, -10.700, -7.900, -5.000, -6.100, -5.400, -5.100, -3.600, -2.100, -1.700, -1.300, -1.000, -0.600, -0.200, 0.200, 0.900, },
{-13.800, -12.800, -10.300, -7.600, -9.100, -8.400, -8.100, -6.600, -5.100, -4.700, -4.300, -4.000, -3.600, -3.200, -2.800, -2.100, },
{-15.000, -14.900, -12.700, -10.100, -12.200, -11.300, -11.000, -9.500, -8.000, -7.600, -7.200, -6.900, -6.500, -6.100, -5.700, -5.000, },
{-15.000, -15.000, -15.000, -12.700, -15.000, -14.300, -14.000, -12.500, -11.000, -10.600, -10.200, -9.900, -9.500, -9.100, -8.700, -8.000, },
{-15.000, -15.000, -15.000, -15.000, -15.000, -15.000, -15.000, -15.000, -14.000, -13.600, -13.200, -12.900, -12.500, -12.100, -11.700, -11.000, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{70.300, 70.300, 70.400, 70.500, 70.600, 70.600, 70.300, 29.900, 29.800, 29.900, 30.400, 31.400, 33.000, 35.100, 37.700, 40.900, },
{70.800, 71.500, 72.100, 72.900, 73.300, 72.800, 72.000, 31.300, 31.200, 31.500, 32.200, 33.500, 35.300, 37.700, 40.500, 43.900, },
{71.700, 72.900, 74.000, 74.900, 74.900, 74.000, 73.000, 82.300, 82.100, 82.400, 83.200, 84.500, 86.300, 88.700, 91.600, 95.000, },
{75.100, 77.400, 78.500, 78.600, 77.700, 76.200, 75.000, 84.100, 84.000, 84.200, 85.100, 86.400, 88.300, 90.700, 93.600, 97.100, },
{80.400, 82.100, 82.300, 81.500, 79.900, 78.200, 76.900, 86.400, 86.200, 86.500, 87.400, 88.700, 90.600, 93.000, 96.000, 99.500, },
{85.000, 85.500, 85.000, 83.700, 82.000, 80.100, 78.700, 88.600, 88.500, 88.700, 89.600, 91.000, 92.900, 95.300, 98.400, 101.900, },
{88.500, 88.200, 87.300, 85.800, 83.900, 82.000, 80.600, 90.900, 90.700, 91.000, 91.900, 93.200, 95.200, 97.700, 100.700, 104.300, },
{86.200, 85.400, 84.300, 82.700, 80.800, 78.900, 77.600, 93.100, 93.000, 93.200, 94.100, 95.500, 97.500, 100.000, 103.100, 106.700, },
{105.600, 104.600, 103.400, 101.700, 99.800, 97.800, 96.400, 95.400, 95.200, 95.500, 96.400, 97.800, 99.800, 102.300, 105.500, 109.100, },
{113.400, 112.100, 110.800, 109.000, 106.900, 104.800, 103.300, 102.300, 102.100, 102.400, 103.300, 104.800, 106.900, 109.600, 112.900, 116.800, },
{121.400, 120.000, 118.600, 116.600, 114.400, 112.200, 110.600, 109.500, 109.300, 109.600, 110.600, 112.200, 114.400, 117.300, 120.800, 124.900, },
{127.600, 126.500, 125.100, 123.000, 120.700, 118.300, 116.600, 115.500, 115.300, 115.600, 116.600, 118.300, 120.700, 123.700, 127.400, 127.600, },
{127.600, 127.600, 127.600, 127.600, 125.700, 123.300, 121.500, 120.400, 120.100, 120.500, 121.500, 123.300, 125.700, 127.600, 127.600, 127.600, },
{127.600, 127.600, 127.600, 127.600, 127.600, 127.000, 125.200, 124.000, 123.800, 124.200, 125.200, 127.000, 127.600, 127.600, 127.600, 127.600, },
{127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 126.500, 126.300, 126.700, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, },
{127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, 127.600, },
};
copyTable(config->veTable, hardCodedveTable);
}
static void cannedinjectionPhase() {
static const float hardCodedinjectionPhase[16][16] = {
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -250.000, -240.000, -240.000, -240.000, -240.000, -240.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -200.000, -200.000, -200.000, -200.000, -200.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -180.000, -180.000, -180.000, -180.000, -180.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -180.000, -180.000, -180.000, -180.000, -180.000, },
{-220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -220.000, -250.000, -250.000, -230.000, -180.000, -180.000, -180.000, -180.000, -180.000, },
};
copyTable(config->injectionPhase, hardCodedinjectionPhase);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, 13.500, },
{13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, 13.200, },
{13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, 13.100, },
{12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, 12.900, },
{12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, 12.600, },
{12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, 12.300, },
{11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, 11.800, },
{11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, 11.300, },
{11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, 11.000, },
{10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, 10.700, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff