Auto-generated default tune

This commit is contained in:
GitHub gen-default-tune Action 2024-03-11 18:00:30 +00:00
parent 59a96c0565
commit 260b21857e
4 changed files with 323 additions and 199 deletions

View File

@ -1,14 +1,8 @@
# m111-alex-comparing-against-current-m111-alex-default
// canned tune https://rusefi.com/online/view.php?msq=1490
// canned tune https://rusefi.com/online/view.php?msq=1622
```
// default "RPM+TPS (Default)"
engineConfiguration->tChargeMode = TCHARGE_MODE_AIR_INTERP;
// default 1.0
engineConfiguration->tChargeAirIncrLimit = 15;
// default 12.5
engineConfiguration->tChargeAirDecrLimit = 15;
// default 0.098
engineConfiguration->tChargeAirCoefMin = 0.4;
// default 0.902
@ -25,8 +19,12 @@
engineConfiguration->displacement = 2.2;
// default 469.0
engineConfiguration->globalTriggerAngleOffset = 72;
// default 40.0
engineConfiguration->camDecoder2jzPrecision = 25;
// default 450.0
engineConfiguration->vvtOffsets[0] = 0;
// default 196.0
engineConfiguration->injector.flow = 222;
// default 300.0
engineConfiguration->fuelReferencePressure = 0;
// default 0.0
@ -56,25 +54,25 @@
// default 4.0
engineConfiguration->benchTestOnTime = 5;
// default 891.0
engineConfiguration->tpsMin = 890;
engineConfiguration->tpsMin = 896;
// default 69.0
engineConfiguration->tpsMax = 35;
engineConfiguration->tpsMax = 39;
// default 98.0
engineConfiguration->tps1SecondaryMin = 93;
engineConfiguration->tps1SecondaryMin = 99;
// default 926.0
engineConfiguration->tps1SecondaryMax = 903;
engineConfiguration->tps1SecondaryMax = 911;
// default 1000.0
engineConfiguration->tps2SecondaryMin = 0;
// default 0.0
engineConfiguration->tps2SecondaryMax = 1000;
// default 0.38
engineConfiguration->throttlePedalUpVoltage = 0.290001;
engineConfiguration->throttlePedalUpVoltage = 0.326213;
// default 4.77
engineConfiguration->throttlePedalWOTVoltage = 4.599976;
engineConfiguration->throttlePedalWOTVoltage = 4.58342;
// default 4.64
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.12;
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.137012;
// default 2.47
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.130005;
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.082364;
// default 65.0
engineConfiguration->mc33_hvolt = 0;
// default 13000.0
@ -121,12 +119,24 @@
engineConfiguration->stepperForceParkingEveryRestart = false;
// default 15.0
engineConfiguration->etbIdleThrottleRange = 10;
// default 0.05
engineConfiguration->idleRpmPid.pFactor = 0.002;
// default 0.002
engineConfiguration->idleRpmPid.iFactor = 0.004;
// default -20.0
engineConfiguration->idleRpmPid.minValue = 0;
engineConfiguration->idleRpmPid.minValue = -10;
// default 20.0
engineConfiguration->idleRpmPid.maxValue = 99;
engineConfiguration->idleRpmPid.maxValue = 15;
// default -20.0
engineConfiguration->idlerpmpid_iTermMin = -100;
// default 20.0
engineConfiguration->idlerpmpid_iTermMax = 100;
// default 0.0
engineConfiguration->pidExtraForLowRpm = 45;
// default "false"
engineConfiguration->useIacPidMultTable = true;
// default 15.0
engineConfiguration->acIdleExtraOffset = 7;
engineConfiguration->acIdleExtraOffset = 2;
// default 2.0
engineConfiguration->fan1ExtraIdle = 0;
// default 2.0
@ -134,17 +144,23 @@
// default 2.0
engineConfiguration->iacByTpsTaper = 0;
// default 5.0
engineConfiguration->idlePidDeactivationTpsThreshold = 2;
engineConfiguration->idlePidDeactivationTpsThreshold = 4;
// default 300.0
engineConfiguration->idlePidRpmUpperLimit = 450;
// default 50.0
engineConfiguration->idlePidRpmDeadZone = 10;
// default "Open Loop"
engineConfiguration->idleMode = IM_AUTO;
// default "false"
engineConfiguration->useIdleTimingPidControl = true;
// default 0.1
engineConfiguration->idleTimingPid.pFactor = 0.25;
// default -10.0
engineConfiguration->idleTimingPid.minValue = -20;
engineConfiguration->idleTimingPid.minValue = -15;
// default 0.5
engineConfiguration->acDelay = 0;
// default 4.0
engineConfiguration->startUpFuelPumpDuration = 1;
// default 3.0
engineConfiguration->startCrankingDuration = 5;
// default 0.0
engineConfiguration->knockBandCustom = 12.80005;
// default 20.0
@ -153,12 +169,12 @@
engineConfiguration->knockRetardReapplyRate = 0.1;
// default 1000.0
engineConfiguration->stft.maxIdleRegionRpm = 900;
// default "false"
engineConfiguration->fuelClosedLoopCorrectionEnabled = true;
// default 60.0
engineConfiguration->stft.startupDelay = 90;
// default 60.0
engineConfiguration->stft.minClt = 70;
// default 12.0
engineConfiguration->stft.minAfr = 10;
// default 6000.0
engineConfiguration->vvtActivationDelayMs = 0;
// default 500.0
@ -188,7 +204,7 @@
// default 0.0
engineConfiguration->auxSerialSpeed = 115200;
// default "MAP"
engineConfiguration->debugMode = DBG_TPS_ACCEL;
engineConfiguration->debugMode = DBG_STEPPER_IDLE_CONTROL;
// default 7000.0
engineConfiguration->rpmHardLimit = 6200;
// default 300.0
@ -201,6 +217,8 @@
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
// default 27.0
engineConfiguration->cranking.baseFuel = 36;
// default 200.0
engineConfiguration->afterCrankingIACtaperDuration = 250;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 6.0
@ -210,23 +228,21 @@
// default 0.5
engineConfiguration->primingDelay = 0;
// default 0.0
engineConfiguration->tpsAccelLookback = 0.35;
engineConfiguration->tpsAccelLookback = 0.3;
// default 40.0
engineConfiguration->tpsAccelEnrichmentThreshold = 80;
engineConfiguration->tpsAccelEnrichmentThreshold = 5;
// default 0.0
engineConfiguration->tpsDecelEnleanmentThreshold = 0.8;
engineConfiguration->tpsDecelEnleanmentThreshold = 12;
// default 0.0
engineConfiguration->tpsAccelFractionPeriod = 1;
engineConfiguration->tpsAccelFractionPeriod = 3;
// default 0.0
engineConfiguration->tpsAccelFractionDivisor = 0.8;
// default "Basic (constants)"
engineConfiguration->complexWallModel = Advanced (tables);
engineConfiguration->tpsAccelFractionDivisor = 0.3;
// default 0.3
engineConfiguration->wwaeTau = 0.1;
engineConfiguration->wwaeTau = 0.25;
// default 0.3
engineConfiguration->wwaeBeta = 0.83;
engineConfiguration->wwaeBeta = 0.35;
// default 0.0
engineConfiguration->scriptSetting[0] = 5000;
engineConfiguration->scriptSetting[0] = 60;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
@ -236,19 +252,19 @@
// default "Throttle 2"
engineConfiguration->etbFunctions[1] = DC_None;
// default 5.12
engineConfiguration->etb.pFactor = 5.101013;
engineConfiguration->etb.pFactor = 6.2437;
// default 47.0
engineConfiguration->etb.iFactor = 80.29004;
engineConfiguration->etb.iFactor = 82.52869;
// default 0.088
engineConfiguration->etb.dFactor = 0.1184;
engineConfiguration->etb.dFactor = 0.0761765;
// default -100.0
engineConfiguration->etb.minValue = -20;
// default -30.0
engineConfiguration->etb_iTermMin = -40;
// default 30.0
engineConfiguration->etb_iTermMax = 40;
engineConfiguration->etb_iTermMin = -25;
// default 800.0
engineConfiguration->etbFreq = 500;
engineConfiguration->etbFreq = 2000;
// default 100.0
engineConfiguration->etbMaximumPosition = 0;
engineConfiguration->etbMaximumPosition = 97;
// default "false"
engineConfiguration->launchControlEnabled = true;
// default "Launch Button"
@ -271,6 +287,8 @@
engineConfiguration->coastingFuelCutRpmHigh = 2000;
// default 2.0
engineConfiguration->coastingFuelCutTps = 5;
// default "true"
engineConfiguration->watchOutForLinearTime = false;
// default 250.0
engineConfiguration->gppwm[0].pwmFrequency = 10;
// default 0.0
@ -281,8 +299,10 @@
engineConfiguration->gppwm[1].pwmFrequency = 125;
// default "Zero"
engineConfiguration->gppwm[1].loadAxis = GPPWM_Map;
// default 250.0
engineConfiguration->gppwm[2].pwmFrequency = 5;
// default "Zero"
engineConfiguration->gppwm[2].loadAxis = GPPWM_Tps;
engineConfiguration->gppwm[2].loadAxis = GPPWM_Map;
// default "Zero"
engineConfiguration->gppwm[3].loadAxis = GPPWM_Tps;
// default 3.0
@ -306,6 +326,7 @@
cannedtpsTpsAccelTable();
cannedboostTableOpenLoop();
cannedboostTableClosedLoop();
cannedscriptTable1();
cannedscriptTable4();
cannedignitionTable();
cannedignitionIatCorrTable();
@ -313,7 +334,9 @@
cannedmapEstimateTable();
cannedinjectionPhase();
cannedpedalToTpsTable();
cannedmaxKnockRetardTable();
cannedlambdaTable();
cannediacPidMultTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -2,8 +2,8 @@
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, },
{3.459, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{6.282, 2.880, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{7.240, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{7.242, 2.880, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.927, 4.896, 2.500, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.515, 6.624, 4.250, 2.500, 0.000, 0.000, 0.000, 0.000, },
{16.589, 8.064, 5.750, 4.250, 2.500, 0.000, 0.000, 0.000, },
@ -41,6 +41,20 @@ static void cannedboostTableClosedLoop() {
copyTable(config->boostTableClosedLoop, hardCodedboostTableClosedLoop);
}
static void cannedscriptTable1() {
static const float hardCodedscriptTable1[8][8] = {
{0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, },
{0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, },
{0.000, 0.200, 0.100, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.200, 0.050, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 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->scriptTable1, hardCodedscriptTable1);
}
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, },
@ -57,22 +71,22 @@ static void cannedscriptTable4() {
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{15.000, 15.000, 15.000, 15.000, 21.800, 23.600, 26.900, 29.600, 32.300, 35.000, 37.100, 37.900, 38.400, 39.000, 39.900, 40.100, },
{15.000, 15.000, 15.000, 15.000, 21.800, 23.600, 26.900, 29.700, 32.100, 34.500, 36.600, 37.400, 38.100, 38.600, 39.500, 39.800, },
{15.000, 15.000, 15.000, 18.000, 21.800, 23.600, 26.900, 29.600, 31.800, 34.100, 36.100, 36.600, 37.400, 38.000, 39.000, 39.400, },
{15.000, 15.000, 15.000, 19.000, 20.800, 22.600, 25.800, 28.400, 30.400, 32.400, 34.300, 34.800, 35.600, 36.200, 37.200, 38.200, },
{15.000, 15.000, 15.000, 19.000, 20.800, 22.600, 25.600, 28.100, 30.000, 31.800, 33.600, 34.100, 35.000, 35.500, 36.900, 37.900, },
{15.000, 15.000, 16.000, 18.600, 20.200, 21.700, 23.400, 24.600, 26.800, 29.100, 31.300, 32.200, 33.400, 34.100, 35.200, 36.400, },
{14.800, 14.900, 16.100, 18.200, 19.400, 20.300, 21.700, 22.600, 24.700, 27.000, 29.200, 30.100, 31.400, 32.100, 33.300, 34.500, },
{13.800, 14.300, 15.200, 16.800, 18.300, 19.600, 20.700, 21.200, 23.300, 25.500, 27.700, 28.600, 30.100, 30.800, 32.100, 33.300, },
{13.600, 14.000, 14.500, 15.100, 16.800, 18.400, 19.400, 19.900, 21.900, 24.100, 26.300, 27.200, 28.800, 29.500, 30.900, 32.100, },
{13.500, 14.000, 14.300, 13.000, 14.900, 16.800, 18.000, 18.700, 20.600, 22.900, 23.700, 23.400, 23.200, 23.000, 22.800, 22.300, },
{12.800, 13.400, 13.600, 12.400, 14.300, 16.200, 17.400, 18.000, 19.900, 20.100, 20.900, 20.600, 20.400, 20.100, 19.900, 19.300, },
{11.200, 12.200, 12.400, 11.000, 12.900, 14.800, 15.900, 16.400, 18.300, 18.400, 19.200, 18.900, 18.500, 18.100, 17.800, 17.100, },
{9.100, 9.600, 10.400, 10.000, 12.000, 13.900, 14.900, 15.400, 17.300, 17.400, 18.100, 17.800, 17.400, 16.900, 16.600, 15.900, },
{4.700, 6.100, 7.400, 9.000, 11.000, 12.900, 13.900, 14.300, 16.200, 16.300, 17.000, 16.700, 16.200, 15.700, 15.300, 14.700, },
{2.200, 3.800, 4.800, 7.800, 9.800, 11.700, 12.600, 13.000, 14.800, 14.800, 15.600, 15.200, 14.700, 14.100, 13.700, 13.100, },
{0.300, 1.900, 2.900, 5.900, 7.900, 9.800, 10.700, 11.000, 12.700, 12.700, 13.600, 13.200, 12.600, 12.000, 11.600, 10.900, },
{0.000, 8.000, 8.000, 8.000, 8.000, 10.000, 18.400, 22.800, 23.700, 30.700, 30.700, 30.700, 30.700, 30.700, 30.700, 30.700, },
{0.000, 8.000, 8.000, 8.000, 8.000, 11.500, 19.700, 24.000, 25.000, 30.500, 30.500, 30.500, 30.500, 30.500, 30.500, 30.500, },
{0.000, 8.000, 8.000, 8.000, 8.000, 13.000, 21.000, 25.100, 26.300, 30.200, 30.200, 30.200, 30.200, 30.200, 30.200, 30.200, },
{0.000, 8.000, 8.000, 8.000, 8.000, 14.500, 22.300, 26.300, 27.500, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, },
{0.000, 8.000, 8.000, 8.000, 8.000, 16.000, 23.600, 27.400, 28.800, 29.800, 29.800, 29.800, 29.800, 29.800, 29.800, 29.800, },
{0.000, 8.000, 8.000, 8.000, 8.000, 16.000, 23.400, 27.200, 28.500, 29.500, 29.500, 29.500, 29.500, 29.500, 29.500, 29.500, },
{0.000, 8.000, 8.000, 8.000, 8.000, 16.000, 23.200, 26.900, 28.200, 29.200, 29.200, 29.200, 29.200, 29.200, 29.200, 29.200, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 23.100, 26.600, 28.000, 28.900, 28.900, 28.900, 28.900, 28.900, 28.900, 28.900, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 23.000, 26.200, 27.600, 28.500, 28.500, 28.500, 28.500, 28.500, 28.500, 28.500, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 22.500, 25.700, 27.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 22.000, 25.100, 26.500, 27.400, 27.400, 27.400, 27.400, 27.400, 27.400, 27.400, },
{0.000, 10.000, 10.000, 10.000, 10.000, 15.900, 21.500, 24.600, 26.000, 27.000, 27.000, 27.000, 27.000, 27.000, 27.000, 27.000, },
{0.000, 10.000, 10.000, 10.000, 10.000, 15.800, 21.000, 24.200, 25.500, 26.500, 26.500, 26.500, 26.500, 26.500, 26.500, 26.500, },
{0.000, 10.000, 10.000, 10.000, 10.000, 15.100, 20.000, 23.100, 25.300, 25.800, 25.800, 25.800, 25.800, 25.800, 25.800, 25.800, },
{0.000, 10.000, 10.000, 10.000, 10.000, 14.400, 19.000, 21.900, 25.100, 25.100, 25.100, 25.100, 25.100, 25.100, 25.100, 25.100, },
{0.000, 10.000, 10.000, 10.000, 10.000, 13.200, 16.500, 19.100, 22.000, 23.700, 23.700, 23.700, 23.700, 23.700, 23.700, 23.700, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
@ -93,22 +107,22 @@ static void cannedignitionIatCorrTable() {
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{43.000, 41.700, 40.000, 32.000, 28.100, 27.200, 28.900, 24.900, 26.100, 27.400, 28.700, 29.900, 31.200, 32.500, 35.300, 36.800, },
{42.500, 40.800, 39.800, 37.100, 36.300, 36.800, 37.200, 37.900, 41.400, 42.700, 44.000, 45.400, 46.700, 48.000, 49.800, 51.100, },
{43.000, 41.200, 40.900, 41.600, 44.400, 45.800, 46.500, 47.800, 49.100, 50.400, 51.700, 53.100, 54.400, 55.700, 57.000, 58.300, },
{43.400, 44.000, 44.100, 47.400, 49.100, 50.800, 51.100, 51.900, 53.500, 54.600, 55.700, 56.800, 57.900, 59.000, 60.100, 61.200, },
{47.300, 47.600, 49.900, 51.500, 53.600, 53.700, 53.800, 54.900, 55.900, 57.000, 58.300, 59.100, 60.200, 61.300, 62.300, 63.400, },
{57.400, 55.400, 55.200, 55.400, 56.800, 57.800, 56.900, 55.700, 57.600, 58.600, 58.200, 60.100, 62.100, 64.100, 66.000, 68.000, },
{57.700, 58.600, 59.200, 58.500, 60.100, 60.300, 59.100, 58.800, 57.800, 58.800, 56.800, 59.700, 62.600, 65.500, 68.300, 71.200, },
{60.100, 62.100, 62.100, 60.900, 62.200, 62.000, 61.200, 61.600, 62.000, 62.500, 63.100, 63.600, 64.100, 66.700, 69.400, 72.100, },
{71.200, 66.000, 63.000, 62.800, 63.700, 63.400, 64.000, 64.700, 65.000, 65.500, 65.900, 66.200, 66.500, 68.800, 71.100, 73.400, },
{73.300, 66.900, 63.100, 64.500, 65.900, 65.900, 66.200, 65.300, 65.700, 66.000, 66.200, 66.500, 66.700, 68.900, 71.000, 73.200, },
{76.900, 68.500, 65.200, 64.400, 66.600, 67.100, 67.400, 66.500, 66.300, 66.100, 66.200, 68.400, 70.900, 73.200, 75.700, 78.300, },
{78.700, 68.300, 65.800, 63.200, 66.000, 67.300, 68.000, 67.000, 67.200, 67.500, 69.500, 71.600, 73.700, 75.600, 77.600, 79.700, },
{78.600, 68.800, 66.700, 64.600, 66.400, 66.900, 68.700, 69.500, 70.300, 71.100, 71.900, 72.700, 74.900, 76.900, 79.000, 81.100, },
{78.500, 69.300, 67.600, 66.000, 66.800, 66.500, 69.400, 70.300, 71.200, 72.000, 72.900, 73.800, 76.000, 78.200, 80.400, 82.600, },
{78.400, 69.700, 68.500, 67.300, 67.200, 66.000, 70.000, 71.000, 71.900, 72.900, 73.800, 74.800, 77.200, 79.400, 81.700, 84.000, },
{78.300, 70.200, 69.400, 68.700, 67.600, 65.600, 70.700, 71.700, 72.800, 73.800, 74.900, 75.900, 78.300, 80.700, 83.100, 85.400, },
{27.800, 27.500, 17.300, 7.800, 5.400, 6.500, 7.200, 10.300, 11.600, 13.700, 27.600, 30.000, 23.400, 23.800, 25.700, 34.400, },
{27.800, 27.500, 17.300, 7.800, 5.400, 6.500, 7.200, 10.300, 11.600, 13.700, 27.600, 30.000, 23.400, 23.800, 25.700, 34.400, },
{21.200, 22.400, 22.900, 12.800, 12.300, 12.600, 13.700, 13.800, 13.100, 28.800, 29.600, 32.400, 31.500, 32.300, 33.500, 34.400, },
{27.400, 27.300, 28.100, 28.200, 29.500, 32.000, 37.800, 26.700, 24.000, 37.800, 39.000, 40.100, 45.000, 46.800, 48.000, 49.000, },
{32.600, 33.900, 34.200, 39.900, 40.900, 43.200, 43.100, 39.600, 34.900, 40.600, 43.300, 47.300, 47.900, 49.700, 50.600, 51.500, },
{38.000, 40.500, 46.600, 50.600, 50.400, 51.400, 50.800, 47.300, 44.400, 48.200, 51.800, 52.200, 49.900, 51.700, 52.400, 53.300, },
{44.400, 47.900, 49.200, 60.200, 55.800, 58.600, 59.000, 53.700, 50.600, 49.400, 48.800, 50.600, 52.300, 54.000, 55.500, 57.100, },
{41.400, 57.800, 66.200, 65.800, 65.500, 64.900, 63.200, 60.700, 59.100, 60.600, 61.300, 55.200, 55.500, 57.200, 58.900, 60.700, },
{65.000, 68.700, 69.100, 70.000, 70.600, 71.600, 68.900, 66.900, 64.900, 69.600, 63.000, 64.400, 61.900, 63.500, 65.700, 67.900, },
{69.000, 76.500, 74.000, 75.600, 73.600, 74.200, 72.500, 69.700, 68.600, 70.300, 65.100, 66.300, 63.300, 64.400, 66.400, 68.500, },
{73.000, 84.200, 78.800, 81.200, 76.600, 76.800, 76.000, 72.500, 72.200, 70.900, 67.100, 68.100, 64.600, 65.300, 67.100, 69.100, },
{74.200, 84.400, 78.800, 82.400, 77.900, 78.900, 78.100, 75.000, 75.600, 75.700, 75.200, 77.200, 73.500, 69.800, 70.500, 71.500, },
{75.400, 84.500, 78.800, 83.600, 79.100, 81.000, 80.200, 77.500, 78.900, 80.500, 83.300, 86.300, 82.300, 74.200, 73.900, 73.900, },
{76.900, 84.700, 78.800, 81.900, 80.000, 81.500, 81.600, 78.700, 80.700, 83.400, 86.500, 90.200, 89.500, 82.800, 82.700, 82.700, },
{78.300, 84.800, 78.800, 80.200, 80.900, 82.000, 82.900, 79.900, 82.400, 86.200, 89.600, 94.000, 96.600, 91.400, 91.500, 91.500, },
{80.000, 85.000, 84.900, 84.800, 84.700, 84.400, 84.200, 83.900, 83.700, 85.900, 89.100, 91.500, 91.600, 90.300, 92.000, 92.000, },
};
copyTable(config->veTable, hardCodedveTable);
}
@ -137,22 +151,22 @@ static void cannedmapEstimateTable() {
static void cannedinjectionPhase() {
static const float hardCodedinjectionPhase[16][16] = {
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
};
copyTable(config->injectionPhase, hardCodedinjectionPhase);
}
@ -160,10 +174,10 @@ static void cannedinjectionPhase() {
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, },
{4.000, 4.000, 4.000, 4.000, 6.000, 7.000, 10.000, 10.000, },
{6.000, 8.000, 8.000, 8.000, 12.000, 14.000, 15.000, 15.000, },
{10.000, 10.000, 10.000, 12.000, 18.000, 20.000, 20.000, 20.000, },
{18.000, 18.000, 18.000, 20.000, 30.000, 33.000, 35.000, 35.000, },
{2.000, 3.000, 2.000, 4.000, 4.000, 4.000, 4.000, 10.000, },
{4.000, 4.000, 4.000, 5.000, 7.000, 14.000, 15.000, 15.000, },
{8.000, 8.000, 8.000, 9.000, 12.000, 20.000, 20.000, 20.000, },
{15.000, 15.000, 18.000, 20.000, 29.000, 33.000, 35.000, 35.000, },
{40.000, 40.000, 40.000, 50.000, 60.000, 65.000, 71.000, 71.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, },
@ -171,6 +185,18 @@ static void cannedpedalToTpsTable() {
copyTable(config->pedalToTpsTable, hardCodedpedalToTpsTable);
}
static void cannedmaxKnockRetardTable() {
static const float hardCodedmaxKnockRetardTable[6][6] = {
{2.000, 2.000, 2.000, 2.000, 2.000, 2.000, },
{2.000, 2.000, 2.000, 2.000, 2.000, 2.000, },
{3.250, 3.250, 3.250, 3.250, 3.250, 3.250, },
{4.250, 4.250, 4.250, 4.250, 4.250, 4.250, },
{5.000, 5.000, 5.000, 5.000, 5.000, 5.000, },
{5.000, 5.000, 5.000, 5.000, 5.000, 5.000, },
};
copyTable(config->maxKnockRetardTable, hardCodedmaxKnockRetardTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
@ -193,6 +219,20 @@ static void cannedlambdaTable() {
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannediacPidMultTable() {
static const float hardCodediacPidMultTable[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, },
{6.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{8.000, 6.000, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{9.000, 8.000, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{10.000, 10.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->iacPidMultTable, hardCodediacPidMultTable);
}
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, },
@ -207,7 +247,7 @@ static void cannedtcuSolenoidTable() {
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{1.200, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },

View File

@ -1,14 +1,8 @@
# m111-alex-comparing-against-global-defaults
// canned tune https://rusefi.com/online/view.php?msq=1490
// canned tune https://rusefi.com/online/view.php?msq=1622
```
// default "RPM+TPS (Default)"
engineConfiguration->tChargeMode = TCHARGE_MODE_AIR_INTERP;
// default 1.0
engineConfiguration->tChargeAirIncrLimit = 15;
// default 12.5
engineConfiguration->tChargeAirDecrLimit = 15;
// default 0.098
engineConfiguration->tChargeAirCoefMin = 0.4;
// default 0.902
@ -25,10 +19,12 @@
engineConfiguration->displacement = 2.2;
// default 0.0
engineConfiguration->globalTriggerAngleOffset = 72;
// default 40.0
engineConfiguration->camDecoder2jzPrecision = 25;
// default 450.0
engineConfiguration->vvtOffsets[0] = 0;
// default 200.0
engineConfiguration->injector.flow = 196;
engineConfiguration->injector.flow = 222;
// default 300.0
engineConfiguration->fuelReferencePressure = 0;
// default 0.0
@ -58,25 +54,25 @@
// default 4.0
engineConfiguration->benchTestOnTime = 5;
// default 0.0
engineConfiguration->tpsMin = 890;
engineConfiguration->tpsMin = 896;
// default 1000.0
engineConfiguration->tpsMax = 35;
engineConfiguration->tpsMax = 39;
// default 1000.0
engineConfiguration->tps1SecondaryMin = 93;
engineConfiguration->tps1SecondaryMin = 99;
// default 0.0
engineConfiguration->tps1SecondaryMax = 903;
engineConfiguration->tps1SecondaryMax = 911;
// default 1000.0
engineConfiguration->tps2SecondaryMin = 0;
// default 0.0
engineConfiguration->tps2SecondaryMax = 1000;
// default 0.0
engineConfiguration->throttlePedalUpVoltage = 0.290001;
engineConfiguration->throttlePedalUpVoltage = 0.326213;
// default 5.0
engineConfiguration->throttlePedalWOTVoltage = 4.599976;
engineConfiguration->throttlePedalWOTVoltage = 4.58342;
// default 5.0
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.12;
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.137012;
// default 0.0
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.130005;
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.082364;
// default 65.0
engineConfiguration->mc33_hvolt = 0;
// default 13000.0
@ -123,12 +119,24 @@
engineConfiguration->stepperForceParkingEveryRestart = false;
// default 15.0
engineConfiguration->etbIdleThrottleRange = 10;
// default 0.05
engineConfiguration->idleRpmPid.pFactor = 0.002;
// default 0.002
engineConfiguration->idleRpmPid.iFactor = 0.004;
// default -20.0
engineConfiguration->idleRpmPid.minValue = 0;
engineConfiguration->idleRpmPid.minValue = -10;
// default 20.0
engineConfiguration->idleRpmPid.maxValue = 99;
engineConfiguration->idleRpmPid.maxValue = 15;
// default -20.0
engineConfiguration->idlerpmpid_iTermMin = -100;
// default 20.0
engineConfiguration->idlerpmpid_iTermMax = 100;
// default 0.0
engineConfiguration->pidExtraForLowRpm = 45;
// default "false"
engineConfiguration->useIacPidMultTable = true;
// default 15.0
engineConfiguration->acIdleExtraOffset = 7;
engineConfiguration->acIdleExtraOffset = 2;
// default 2.0
engineConfiguration->fan1ExtraIdle = 0;
// default 2.0
@ -136,17 +144,23 @@
// default 2.0
engineConfiguration->iacByTpsTaper = 0;
// default 5.0
engineConfiguration->idlePidDeactivationTpsThreshold = 2;
engineConfiguration->idlePidDeactivationTpsThreshold = 4;
// default 300.0
engineConfiguration->idlePidRpmUpperLimit = 450;
// default 50.0
engineConfiguration->idlePidRpmDeadZone = 10;
// default "Open Loop"
engineConfiguration->idleMode = IM_AUTO;
// default "false"
engineConfiguration->useIdleTimingPidControl = true;
// default 0.1
engineConfiguration->idleTimingPid.pFactor = 0.25;
// default -10.0
engineConfiguration->idleTimingPid.minValue = -20;
engineConfiguration->idleTimingPid.minValue = -15;
// default 0.5
engineConfiguration->acDelay = 0;
// default 4.0
engineConfiguration->startUpFuelPumpDuration = 1;
// default 3.0
engineConfiguration->startCrankingDuration = 5;
// default "false"
engineConfiguration->enableSoftwareKnock = true;
// default 87.5
@ -159,12 +173,12 @@
engineConfiguration->knockRetardReapplyRate = 0.1;
// default 1000.0
engineConfiguration->stft.maxIdleRegionRpm = 900;
// default "false"
engineConfiguration->fuelClosedLoopCorrectionEnabled = true;
// default 60.0
engineConfiguration->stft.startupDelay = 90;
// default 60.0
engineConfiguration->stft.minClt = 70;
// default 12.0
engineConfiguration->stft.minAfr = 10;
// default 6000.0
engineConfiguration->vvtActivationDelayMs = 0;
// default 33.0
@ -198,7 +212,7 @@
// default 0.0
engineConfiguration->auxSerialSpeed = 115200;
// default "MAP"
engineConfiguration->debugMode = DBG_TPS_ACCEL;
engineConfiguration->debugMode = DBG_STEPPER_IDLE_CONTROL;
// default 7000.0
engineConfiguration->rpmHardLimit = 6200;
// default 300.0
@ -209,6 +223,8 @@
engineConfiguration->etbRevLimitRange = 200;
// default 27.0
engineConfiguration->cranking.baseFuel = 36;
// default 200.0
engineConfiguration->afterCrankingIACtaperDuration = 250;
// default "false"
engineConfiguration->overrideCrankingIacSetting = true;
// default 6.0
@ -218,23 +234,21 @@
// default 0.5
engineConfiguration->primingDelay = 0;
// default 0.0
engineConfiguration->tpsAccelLookback = 0.35;
engineConfiguration->tpsAccelLookback = 0.3;
// default 40.0
engineConfiguration->tpsAccelEnrichmentThreshold = 80;
engineConfiguration->tpsAccelEnrichmentThreshold = 5;
// default 0.0
engineConfiguration->tpsDecelEnleanmentThreshold = 0.8;
engineConfiguration->tpsDecelEnleanmentThreshold = 12;
// default 0.0
engineConfiguration->tpsAccelFractionPeriod = 1;
engineConfiguration->tpsAccelFractionPeriod = 3;
// default 0.0
engineConfiguration->tpsAccelFractionDivisor = 0.8;
// default "Basic (constants)"
engineConfiguration->complexWallModel = Advanced (tables);
engineConfiguration->tpsAccelFractionDivisor = 0.3;
// default 0.3
engineConfiguration->wwaeTau = 0.1;
engineConfiguration->wwaeTau = 0.25;
// default 0.3
engineConfiguration->wwaeBeta = 0.83;
engineConfiguration->wwaeBeta = 0.35;
// default 0.0
engineConfiguration->scriptSetting[0] = 5000;
engineConfiguration->scriptSetting[0] = 60;
// default 2000.0
engineConfiguration->boostControlMinRpm = 0;
// default 30.0
@ -244,19 +258,19 @@
// default "Throttle 2"
engineConfiguration->etbFunctions[1] = DC_None;
// default 1.0
engineConfiguration->etb.pFactor = 5.101013;
engineConfiguration->etb.pFactor = 6.2437;
// default 10.0
engineConfiguration->etb.iFactor = 80.29004;
engineConfiguration->etb.iFactor = 82.52869;
// default 0.05
engineConfiguration->etb.dFactor = 0.1184;
engineConfiguration->etb.dFactor = 0.0761765;
// default -100.0
engineConfiguration->etb.minValue = -20;
// default -30.0
engineConfiguration->etb_iTermMin = -40;
// default 30.0
engineConfiguration->etb_iTermMax = 40;
engineConfiguration->etb_iTermMin = -25;
// default 800.0
engineConfiguration->etbFreq = 500;
engineConfiguration->etbFreq = 2000;
// default 100.0
engineConfiguration->etbMaximumPosition = 0;
engineConfiguration->etbMaximumPosition = 97;
// default "false"
engineConfiguration->launchControlEnabled = true;
// default "Launch Button"
@ -279,6 +293,8 @@
engineConfiguration->coastingFuelCutRpmHigh = 2000;
// default 2.0
engineConfiguration->coastingFuelCutTps = 5;
// default "true"
engineConfiguration->watchOutForLinearTime = false;
// default 250.0
engineConfiguration->gppwm[0].pwmFrequency = 10;
// default 0.0
@ -289,8 +305,10 @@
engineConfiguration->gppwm[1].pwmFrequency = 125;
// default "Zero"
engineConfiguration->gppwm[1].loadAxis = GPPWM_Map;
// default 250.0
engineConfiguration->gppwm[2].pwmFrequency = 5;
// default "Zero"
engineConfiguration->gppwm[2].loadAxis = GPPWM_Tps;
engineConfiguration->gppwm[2].loadAxis = GPPWM_Map;
// default "Zero"
engineConfiguration->gppwm[3].loadAxis = GPPWM_Tps;
// default 3.0
@ -314,6 +332,7 @@
cannedtpsTpsAccelTable();
cannedboostTableOpenLoop();
cannedboostTableClosedLoop();
cannedscriptTable1();
cannedscriptTable4();
cannedignitionTable();
cannedignitionIatCorrTable();
@ -321,7 +340,9 @@
cannedmapEstimateTable();
cannedinjectionPhase();
cannedpedalToTpsTable();
cannedmaxKnockRetardTable();
cannedlambdaTable();
cannediacPidMultTable();
cannedtcuSolenoidTable();
cannedpostCrankingFactor();
```

View File

@ -2,8 +2,8 @@
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, },
{3.459, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{6.282, 2.880, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{7.240, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{7.242, 2.880, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.927, 4.896, 2.500, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.515, 6.624, 4.250, 2.500, 0.000, 0.000, 0.000, 0.000, },
{16.589, 8.064, 5.750, 4.250, 2.500, 0.000, 0.000, 0.000, },
@ -41,6 +41,20 @@ static void cannedboostTableClosedLoop() {
copyTable(config->boostTableClosedLoop, hardCodedboostTableClosedLoop);
}
static void cannedscriptTable1() {
static const float hardCodedscriptTable1[8][8] = {
{0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, },
{0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, },
{0.000, 0.200, 0.100, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.200, 0.050, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 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->scriptTable1, hardCodedscriptTable1);
}
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, },
@ -57,22 +71,22 @@ static void cannedscriptTable4() {
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{15.000, 15.000, 15.000, 15.000, 21.800, 23.600, 26.900, 29.600, 32.300, 35.000, 37.100, 37.900, 38.400, 39.000, 39.900, 40.100, },
{15.000, 15.000, 15.000, 15.000, 21.800, 23.600, 26.900, 29.700, 32.100, 34.500, 36.600, 37.400, 38.100, 38.600, 39.500, 39.800, },
{15.000, 15.000, 15.000, 18.000, 21.800, 23.600, 26.900, 29.600, 31.800, 34.100, 36.100, 36.600, 37.400, 38.000, 39.000, 39.400, },
{15.000, 15.000, 15.000, 19.000, 20.800, 22.600, 25.800, 28.400, 30.400, 32.400, 34.300, 34.800, 35.600, 36.200, 37.200, 38.200, },
{15.000, 15.000, 15.000, 19.000, 20.800, 22.600, 25.600, 28.100, 30.000, 31.800, 33.600, 34.100, 35.000, 35.500, 36.900, 37.900, },
{15.000, 15.000, 16.000, 18.600, 20.200, 21.700, 23.400, 24.600, 26.800, 29.100, 31.300, 32.200, 33.400, 34.100, 35.200, 36.400, },
{14.800, 14.900, 16.100, 18.200, 19.400, 20.300, 21.700, 22.600, 24.700, 27.000, 29.200, 30.100, 31.400, 32.100, 33.300, 34.500, },
{13.800, 14.300, 15.200, 16.800, 18.300, 19.600, 20.700, 21.200, 23.300, 25.500, 27.700, 28.600, 30.100, 30.800, 32.100, 33.300, },
{13.600, 14.000, 14.500, 15.100, 16.800, 18.400, 19.400, 19.900, 21.900, 24.100, 26.300, 27.200, 28.800, 29.500, 30.900, 32.100, },
{13.500, 14.000, 14.300, 13.000, 14.900, 16.800, 18.000, 18.700, 20.600, 22.900, 23.700, 23.400, 23.200, 23.000, 22.800, 22.300, },
{12.800, 13.400, 13.600, 12.400, 14.300, 16.200, 17.400, 18.000, 19.900, 20.100, 20.900, 20.600, 20.400, 20.100, 19.900, 19.300, },
{11.200, 12.200, 12.400, 11.000, 12.900, 14.800, 15.900, 16.400, 18.300, 18.400, 19.200, 18.900, 18.500, 18.100, 17.800, 17.100, },
{9.100, 9.600, 10.400, 10.000, 12.000, 13.900, 14.900, 15.400, 17.300, 17.400, 18.100, 17.800, 17.400, 16.900, 16.600, 15.900, },
{4.700, 6.100, 7.400, 9.000, 11.000, 12.900, 13.900, 14.300, 16.200, 16.300, 17.000, 16.700, 16.200, 15.700, 15.300, 14.700, },
{2.200, 3.800, 4.800, 7.800, 9.800, 11.700, 12.600, 13.000, 14.800, 14.800, 15.600, 15.200, 14.700, 14.100, 13.700, 13.100, },
{0.300, 1.900, 2.900, 5.900, 7.900, 9.800, 10.700, 11.000, 12.700, 12.700, 13.600, 13.200, 12.600, 12.000, 11.600, 10.900, },
{0.000, 8.000, 8.000, 8.000, 8.000, 10.000, 18.400, 22.800, 23.700, 30.700, 30.700, 30.700, 30.700, 30.700, 30.700, 30.700, },
{0.000, 8.000, 8.000, 8.000, 8.000, 11.500, 19.700, 24.000, 25.000, 30.500, 30.500, 30.500, 30.500, 30.500, 30.500, 30.500, },
{0.000, 8.000, 8.000, 8.000, 8.000, 13.000, 21.000, 25.100, 26.300, 30.200, 30.200, 30.200, 30.200, 30.200, 30.200, 30.200, },
{0.000, 8.000, 8.000, 8.000, 8.000, 14.500, 22.300, 26.300, 27.500, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, 30.000, },
{0.000, 8.000, 8.000, 8.000, 8.000, 16.000, 23.600, 27.400, 28.800, 29.800, 29.800, 29.800, 29.800, 29.800, 29.800, 29.800, },
{0.000, 8.000, 8.000, 8.000, 8.000, 16.000, 23.400, 27.200, 28.500, 29.500, 29.500, 29.500, 29.500, 29.500, 29.500, 29.500, },
{0.000, 8.000, 8.000, 8.000, 8.000, 16.000, 23.200, 26.900, 28.200, 29.200, 29.200, 29.200, 29.200, 29.200, 29.200, 29.200, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 23.100, 26.600, 28.000, 28.900, 28.900, 28.900, 28.900, 28.900, 28.900, 28.900, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 23.000, 26.200, 27.600, 28.500, 28.500, 28.500, 28.500, 28.500, 28.500, 28.500, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 22.500, 25.700, 27.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, },
{0.000, 10.000, 10.000, 10.000, 10.000, 16.000, 22.000, 25.100, 26.500, 27.400, 27.400, 27.400, 27.400, 27.400, 27.400, 27.400, },
{0.000, 10.000, 10.000, 10.000, 10.000, 15.900, 21.500, 24.600, 26.000, 27.000, 27.000, 27.000, 27.000, 27.000, 27.000, 27.000, },
{0.000, 10.000, 10.000, 10.000, 10.000, 15.800, 21.000, 24.200, 25.500, 26.500, 26.500, 26.500, 26.500, 26.500, 26.500, 26.500, },
{0.000, 10.000, 10.000, 10.000, 10.000, 15.100, 20.000, 23.100, 25.300, 25.800, 25.800, 25.800, 25.800, 25.800, 25.800, 25.800, },
{0.000, 10.000, 10.000, 10.000, 10.000, 14.400, 19.000, 21.900, 25.100, 25.100, 25.100, 25.100, 25.100, 25.100, 25.100, 25.100, },
{0.000, 10.000, 10.000, 10.000, 10.000, 13.200, 16.500, 19.100, 22.000, 23.700, 23.700, 23.700, 23.700, 23.700, 23.700, 23.700, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
@ -93,22 +107,22 @@ static void cannedignitionIatCorrTable() {
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{43.000, 41.700, 40.000, 32.000, 28.100, 27.200, 28.900, 24.900, 26.100, 27.400, 28.700, 29.900, 31.200, 32.500, 35.300, 36.800, },
{42.500, 40.800, 39.800, 37.100, 36.300, 36.800, 37.200, 37.900, 41.400, 42.700, 44.000, 45.400, 46.700, 48.000, 49.800, 51.100, },
{43.000, 41.200, 40.900, 41.600, 44.400, 45.800, 46.500, 47.800, 49.100, 50.400, 51.700, 53.100, 54.400, 55.700, 57.000, 58.300, },
{43.400, 44.000, 44.100, 47.400, 49.100, 50.800, 51.100, 51.900, 53.500, 54.600, 55.700, 56.800, 57.900, 59.000, 60.100, 61.200, },
{47.300, 47.600, 49.900, 51.500, 53.600, 53.700, 53.800, 54.900, 55.900, 57.000, 58.300, 59.100, 60.200, 61.300, 62.300, 63.400, },
{57.400, 55.400, 55.200, 55.400, 56.800, 57.800, 56.900, 55.700, 57.600, 58.600, 58.200, 60.100, 62.100, 64.100, 66.000, 68.000, },
{57.700, 58.600, 59.200, 58.500, 60.100, 60.300, 59.100, 58.800, 57.800, 58.800, 56.800, 59.700, 62.600, 65.500, 68.300, 71.200, },
{60.100, 62.100, 62.100, 60.900, 62.200, 62.000, 61.200, 61.600, 62.000, 62.500, 63.100, 63.600, 64.100, 66.700, 69.400, 72.100, },
{71.200, 66.000, 63.000, 62.800, 63.700, 63.400, 64.000, 64.700, 65.000, 65.500, 65.900, 66.200, 66.500, 68.800, 71.100, 73.400, },
{73.300, 66.900, 63.100, 64.500, 65.900, 65.900, 66.200, 65.300, 65.700, 66.000, 66.200, 66.500, 66.700, 68.900, 71.000, 73.200, },
{76.900, 68.500, 65.200, 64.400, 66.600, 67.100, 67.400, 66.500, 66.300, 66.100, 66.200, 68.400, 70.900, 73.200, 75.700, 78.300, },
{78.700, 68.300, 65.800, 63.200, 66.000, 67.300, 68.000, 67.000, 67.200, 67.500, 69.500, 71.600, 73.700, 75.600, 77.600, 79.700, },
{78.600, 68.800, 66.700, 64.600, 66.400, 66.900, 68.700, 69.500, 70.300, 71.100, 71.900, 72.700, 74.900, 76.900, 79.000, 81.100, },
{78.500, 69.300, 67.600, 66.000, 66.800, 66.500, 69.400, 70.300, 71.200, 72.000, 72.900, 73.800, 76.000, 78.200, 80.400, 82.600, },
{78.400, 69.700, 68.500, 67.300, 67.200, 66.000, 70.000, 71.000, 71.900, 72.900, 73.800, 74.800, 77.200, 79.400, 81.700, 84.000, },
{78.300, 70.200, 69.400, 68.700, 67.600, 65.600, 70.700, 71.700, 72.800, 73.800, 74.900, 75.900, 78.300, 80.700, 83.100, 85.400, },
{27.800, 27.500, 17.300, 7.800, 5.400, 6.500, 7.200, 10.300, 11.600, 13.700, 27.600, 30.000, 23.400, 23.800, 25.700, 34.400, },
{27.800, 27.500, 17.300, 7.800, 5.400, 6.500, 7.200, 10.300, 11.600, 13.700, 27.600, 30.000, 23.400, 23.800, 25.700, 34.400, },
{21.200, 22.400, 22.900, 12.800, 12.300, 12.600, 13.700, 13.800, 13.100, 28.800, 29.600, 32.400, 31.500, 32.300, 33.500, 34.400, },
{27.400, 27.300, 28.100, 28.200, 29.500, 32.000, 37.800, 26.700, 24.000, 37.800, 39.000, 40.100, 45.000, 46.800, 48.000, 49.000, },
{32.600, 33.900, 34.200, 39.900, 40.900, 43.200, 43.100, 39.600, 34.900, 40.600, 43.300, 47.300, 47.900, 49.700, 50.600, 51.500, },
{38.000, 40.500, 46.600, 50.600, 50.400, 51.400, 50.800, 47.300, 44.400, 48.200, 51.800, 52.200, 49.900, 51.700, 52.400, 53.300, },
{44.400, 47.900, 49.200, 60.200, 55.800, 58.600, 59.000, 53.700, 50.600, 49.400, 48.800, 50.600, 52.300, 54.000, 55.500, 57.100, },
{41.400, 57.800, 66.200, 65.800, 65.500, 64.900, 63.200, 60.700, 59.100, 60.600, 61.300, 55.200, 55.500, 57.200, 58.900, 60.700, },
{65.000, 68.700, 69.100, 70.000, 70.600, 71.600, 68.900, 66.900, 64.900, 69.600, 63.000, 64.400, 61.900, 63.500, 65.700, 67.900, },
{69.000, 76.500, 74.000, 75.600, 73.600, 74.200, 72.500, 69.700, 68.600, 70.300, 65.100, 66.300, 63.300, 64.400, 66.400, 68.500, },
{73.000, 84.200, 78.800, 81.200, 76.600, 76.800, 76.000, 72.500, 72.200, 70.900, 67.100, 68.100, 64.600, 65.300, 67.100, 69.100, },
{74.200, 84.400, 78.800, 82.400, 77.900, 78.900, 78.100, 75.000, 75.600, 75.700, 75.200, 77.200, 73.500, 69.800, 70.500, 71.500, },
{75.400, 84.500, 78.800, 83.600, 79.100, 81.000, 80.200, 77.500, 78.900, 80.500, 83.300, 86.300, 82.300, 74.200, 73.900, 73.900, },
{76.900, 84.700, 78.800, 81.900, 80.000, 81.500, 81.600, 78.700, 80.700, 83.400, 86.500, 90.200, 89.500, 82.800, 82.700, 82.700, },
{78.300, 84.800, 78.800, 80.200, 80.900, 82.000, 82.900, 79.900, 82.400, 86.200, 89.600, 94.000, 96.600, 91.400, 91.500, 91.500, },
{80.000, 85.000, 84.900, 84.800, 84.700, 84.400, 84.200, 83.900, 83.700, 85.900, 89.100, 91.500, 91.600, 90.300, 92.000, 92.000, },
};
copyTable(config->veTable, hardCodedveTable);
}
@ -137,22 +151,22 @@ static void cannedmapEstimateTable() {
static void cannedinjectionPhase() {
static const float hardCodedinjectionPhase[16][16] = {
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
{-360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, -360.000, },
};
copyTable(config->injectionPhase, hardCodedinjectionPhase);
}
@ -160,10 +174,10 @@ static void cannedinjectionPhase() {
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, },
{4.000, 4.000, 4.000, 4.000, 6.000, 7.000, 10.000, 10.000, },
{6.000, 8.000, 8.000, 8.000, 12.000, 14.000, 15.000, 15.000, },
{10.000, 10.000, 10.000, 12.000, 18.000, 20.000, 20.000, 20.000, },
{18.000, 18.000, 18.000, 20.000, 30.000, 33.000, 35.000, 35.000, },
{2.000, 3.000, 2.000, 4.000, 4.000, 4.000, 4.000, 10.000, },
{4.000, 4.000, 4.000, 5.000, 7.000, 14.000, 15.000, 15.000, },
{8.000, 8.000, 8.000, 9.000, 12.000, 20.000, 20.000, 20.000, },
{15.000, 15.000, 18.000, 20.000, 29.000, 33.000, 35.000, 35.000, },
{40.000, 40.000, 40.000, 50.000, 60.000, 65.000, 71.000, 71.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, },
@ -171,6 +185,18 @@ static void cannedpedalToTpsTable() {
copyTable(config->pedalToTpsTable, hardCodedpedalToTpsTable);
}
static void cannedmaxKnockRetardTable() {
static const float hardCodedmaxKnockRetardTable[6][6] = {
{2.000, 2.000, 2.000, 2.000, 2.000, 2.000, },
{2.000, 2.000, 2.000, 2.000, 2.000, 2.000, },
{3.250, 3.250, 3.250, 3.250, 3.250, 3.250, },
{4.250, 4.250, 4.250, 4.250, 4.250, 4.250, },
{5.000, 5.000, 5.000, 5.000, 5.000, 5.000, },
{5.000, 5.000, 5.000, 5.000, 5.000, 5.000, },
};
copyTable(config->maxKnockRetardTable, hardCodedmaxKnockRetardTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
@ -193,6 +219,20 @@ static void cannedlambdaTable() {
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannediacPidMultTable() {
static const float hardCodediacPidMultTable[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, },
{6.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{8.000, 6.000, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{9.000, 8.000, 4.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{10.000, 10.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->iacPidMultTable, hardCodediacPidMultTable);
}
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, },
@ -207,7 +247,7 @@ static void cannedtcuSolenoidTable() {
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{1.200, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },