auto-sync
This commit is contained in:
parent
ca5ee711af
commit
f64571fc12
|
@ -665,9 +665,9 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
engineConfiguration->uartConsoleSerialSpeed = 115200;
|
||||
|
||||
|
||||
engineConfiguration->mapAccelLength = 6;
|
||||
engineConfiguration->mapAccelEnrichmentThreshold = 5; // kPa
|
||||
engineConfiguration->mapAccelEnrichmentMultiplier = 2;
|
||||
engineConfiguration->engineLoadAccelLength = 6;
|
||||
engineConfiguration->engineLoadAccelEnrichmentThreshold = 5; // kPa
|
||||
engineConfiguration->engineLoadAccelEnrichmentMultiplier = 2;
|
||||
|
||||
engineConfiguration->tpsAccelLength = 12;
|
||||
engineConfiguration->tpsAccelEnrichmentThreshold = 40; // TPS % change, per engine cycle
|
||||
|
|
|
@ -77,7 +77,7 @@ floatms_t getBaseFuel(int rpm DECLARE_ENGINE_PARAMETER_S) {
|
|||
if (CONFIG(algorithm) == LM_SPEED_DENSITY) {
|
||||
engine->engineState.baseFuel = getSpeedDensityFuel(rpm PASS_ENGINE_PARAMETER);
|
||||
} else if (engineConfiguration->algorithm == LM_REAL_MAF) {
|
||||
float maf = getRealMaf(PASS_ENGINE_PARAMETER_F) + engine->mapAccelEnrichment.getMapEnrichment(PASS_ENGINE_PARAMETER_F);
|
||||
float maf = getRealMaf(PASS_ENGINE_PARAMETER_F) + engine->engineLoadAccelEnrichment.getMapEnrichment(PASS_ENGINE_PARAMETER_F);
|
||||
engine->engineState.baseFuel = getRealMafFuel(maf, rpm PASS_ENGINE_PARAMETER);
|
||||
} else {
|
||||
engine->engineState.baseFuel = engine->engineState.baseTableFuel;
|
||||
|
|
|
@ -461,7 +461,7 @@ static void setFloat(const char *offsetStr, const char *valueStr) {
|
|||
|
||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
static void resetAccel(void) {
|
||||
engine->mapAccelEnrichment.reset();
|
||||
engine->engineLoadAccelEnrichment.reset();
|
||||
engine->tpsAccelEnrichment.reset();
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -87,9 +87,9 @@ float getSpeedDensityFuel(int rpm DECLARE_ENGINE_PARAMETER_S) {
|
|||
float tChargeK = ENGINE(engineState.tChargeK);
|
||||
float map = getMap();
|
||||
|
||||
float adjMap = map + engine->mapAccelEnrichment.getMapEnrichment(PASS_ENGINE_PARAMETER_F);
|
||||
float adjustedMap = map + engine->engineLoadAccelEnrichment.getMapEnrichment(PASS_ENGINE_PARAMETER_F);
|
||||
|
||||
engine->engineState.airMass = getAirMass(engineConfiguration, ENGINE(engineState.currentVE), adjMap, tChargeK);
|
||||
engine->engineState.airMass = getAirMass(engineConfiguration, ENGINE(engineState.currentVE), adjustedMap, tChargeK);
|
||||
|
||||
return sdMath(engineConfiguration, engine->engineState.airMass, ENGINE(engineState.targerAFR)) * 1000;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue