Hellen NB2 default tune #4038
This commit is contained in:
parent
92eab7f3ba
commit
a90ca2b200
|
@ -241,10 +241,10 @@ void setMazdaNB2VVTSettings() {
|
|||
// VVT closed loop
|
||||
engineConfiguration->auxPid[0].pFactor = 2;
|
||||
engineConfiguration->auxPid[0].iFactor = 0.005;
|
||||
engineConfiguration->auxPid[0].dFactor = 0;
|
||||
engineConfiguration->auxPid[0].dFactor = 0.002;
|
||||
engineConfiguration->auxPid[0].offset = 33;
|
||||
engineConfiguration->auxPid[0].minValue = 24;
|
||||
engineConfiguration->auxPid[0].maxValue = 44;
|
||||
engineConfiguration->auxPid[0].minValue = 20;
|
||||
engineConfiguration->auxPid[0].maxValue = 90;
|
||||
}
|
||||
|
||||
static void set4EC_AT() {
|
||||
|
@ -277,10 +277,10 @@ static void setCommonMazdaNB() {
|
|||
engineConfiguration->isAlternatorControlEnabled = true;
|
||||
// enable altdebug
|
||||
engineConfiguration->targetVBatt = 13.8;
|
||||
engineConfiguration->alternatorControl.offset = 40;
|
||||
engineConfiguration->alternatorControl.pFactor = 14;
|
||||
engineConfiguration->alternatorControl.iFactor = 0.1;
|
||||
engineConfiguration->alternatorControl.dFactor = 0;
|
||||
engineConfiguration->alternatorControl.offset = 20;
|
||||
engineConfiguration->alternatorControl.pFactor = 16;
|
||||
engineConfiguration->alternatorControl.iFactor = 8;
|
||||
engineConfiguration->alternatorControl.dFactor = 0.1;
|
||||
engineConfiguration->alternatorControl.periodMs = 10;
|
||||
|
||||
copyArray(config->veRpmBins, mazda_miata_nb2_RpmBins);
|
||||
|
@ -320,6 +320,17 @@ static void setCommonMazdaNB() {
|
|||
engineConfiguration->iacByTpsTaper = 6;
|
||||
engineConfiguration->acIdleExtraOffset = 15;
|
||||
|
||||
engineConfiguration->useIdleTimingPidControl = true;
|
||||
engineConfiguration->idlePidRpmUpperLimit = 350;
|
||||
engineConfiguration->idlePidRpmDeadZone = 100;
|
||||
|
||||
engineConfiguration->crankingIACposition = 36;
|
||||
engineConfiguration->afterCrankingIACtaperDuration = 189;
|
||||
|
||||
engineConfiguration->wwaeTau = 0.1;
|
||||
engineConfiguration->targetVBatt = 14.2;
|
||||
|
||||
engineConfiguration->vehicleWeight = 1070;
|
||||
engineConfiguration->specs.cylindersCount = 4;
|
||||
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ void startIdleBench(void) {
|
|||
|
||||
|
||||
void setDefaultIdleParameters() {
|
||||
engineConfiguration->idleRpmPid.pFactor = 0.1f;
|
||||
engineConfiguration->idleRpmPid.pFactor = 0.01f;
|
||||
engineConfiguration->idleRpmPid.iFactor = 0.05f;
|
||||
engineConfiguration->idleRpmPid.dFactor = 0.0f;
|
||||
|
||||
|
@ -193,10 +193,12 @@ void setDefaultIdleParameters() {
|
|||
|
||||
// Allow +- 10 degrees adjustment
|
||||
engineConfiguration->idleTimingPid.minValue = -10;
|
||||
engineConfiguration->idleTimingPid.minValue = 10;
|
||||
engineConfiguration->idleTimingPid.maxValue = 10;
|
||||
|
||||
// Idle region is target + 100 RPM
|
||||
engineConfiguration->idlePidRpmUpperLimit = 100;
|
||||
|
||||
engineConfiguration->idlePidRpmDeadZone = 50;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -103,7 +103,7 @@ static void setDefaultFuelCutParameters() {
|
|||
engineConfiguration->coastingFuelCutRpmHigh = 1500;
|
||||
engineConfiguration->coastingFuelCutTps = 2;
|
||||
engineConfiguration->coastingFuelCutMap = 30;
|
||||
engineConfiguration->coastingFuelCutClt = 30;
|
||||
engineConfiguration->coastingFuelCutClt = 60;
|
||||
}
|
||||
|
||||
static void setDefaultStftSettings() {
|
||||
|
|
|
@ -520,11 +520,10 @@ static void setDefaultEngineConfiguration() {
|
|||
engineConfiguration->sdCardPeriodMs = 50;
|
||||
|
||||
engineConfiguration->mapMinBufferLength = 1;
|
||||
engineConfiguration->vvtActivationDelayMs = 6000;
|
||||
|
||||
engineConfiguration->startCrankingDuration = 3;
|
||||
|
||||
engineConfiguration->idlePidRpmDeadZone = 50;
|
||||
|
||||
engineConfiguration->maxAcRpm = 5000;
|
||||
engineConfiguration->maxAcClt = 100;
|
||||
engineConfiguration->maxAcTps = 75;
|
||||
|
@ -534,7 +533,7 @@ static void setDefaultEngineConfiguration() {
|
|||
engineConfiguration->auxPid[0].minValue = 10;
|
||||
engineConfiguration->auxPid[0].maxValue = 90;
|
||||
|
||||
engineConfiguration->alternatorControl.minValue = 10;
|
||||
engineConfiguration->alternatorControl.minValue = 0;
|
||||
engineConfiguration->alternatorControl.maxValue = 90;
|
||||
|
||||
setLinearCurve(engineConfiguration->scriptCurve1Bins, 0, 100, 1);
|
||||
|
|
Loading…
Reference in New Issue