cleanup
This commit is contained in:
parent
26a3efe204
commit
3f293e573c
|
@ -198,8 +198,6 @@ void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
currentRawVE = interpolateClamped(0.0f, idleVe, CONFIG(idlePidDeactivationTpsThreshold), currentRawVE, tps.Value);
|
currentRawVE = interpolateClamped(0.0f, idleVe, CONFIG(idlePidDeactivationTpsThreshold), currentRawVE, tps.Value);
|
||||||
}
|
}
|
||||||
currentBaroCorrectedVE = baroCorrection * currentRawVE * PERCENT_DIV;
|
currentBaroCorrectedVE = baroCorrection * currentRawVE * PERCENT_DIV;
|
||||||
} else {
|
|
||||||
baseTableFuel = getBaseTableFuel(rpm, getEngineLoadT(PASS_ENGINE_PARAMETER_SIGNATURE));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ENGINE(injectionDuration) = getInjectionDuration(rpm PASS_ENGINE_PARAMETER_SUFFIX);
|
ENGINE(injectionDuration) = getInjectionDuration(rpm PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
|
@ -66,10 +66,6 @@ public:
|
||||||
float fuelingLoad = 0;
|
float fuelingLoad = 0;
|
||||||
float ignitionLoad = 0;
|
float ignitionLoad = 0;
|
||||||
|
|
||||||
/**
|
|
||||||
* pre-calculated value from simple fuel lookup
|
|
||||||
*/
|
|
||||||
floatms_t baseTableFuel = 0;
|
|
||||||
/**
|
/**
|
||||||
* Raw fuel injection duration produced by current fuel algorithm, without any correction
|
* Raw fuel injection duration produced by current fuel algorithm, without any correction
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -251,7 +251,7 @@ floatms_t getBaseFuel(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
// TODO: independently selectable ignition load mode
|
// TODO: independently selectable ignition load mode
|
||||||
ENGINE(engineState.ignitionLoad) = tps;
|
ENGINE(engineState.ignitionLoad) = tps;
|
||||||
|
|
||||||
baseFuel = engine->engineState.baseTableFuel;
|
baseFuel = getBaseTableFuel(rpm, getEngineLoadT(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||||
efiAssert(CUSTOM_ERR_ASSERT, !cisnan(baseFuel), "NaN bt baseFuel", 0);
|
efiAssert(CUSTOM_ERR_ASSERT, !cisnan(baseFuel), "NaN bt baseFuel", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue