refactoring: removing unused parameter
This commit is contained in:
parent
ca92b34a82
commit
907e058d95
|
@ -75,7 +75,7 @@ floatms_t getBaseFuel(int rpm DECLARE_ENGINE_PARAMETER_S) {
|
||||||
ENGINE(engineState.tpsAccelEnrich) = ENGINE(tpsAccelEnrichment.getTpsEnrichment(PASS_ENGINE_PARAMETER_F));
|
ENGINE(engineState.tpsAccelEnrich) = ENGINE(tpsAccelEnrichment.getTpsEnrichment(PASS_ENGINE_PARAMETER_F));
|
||||||
|
|
||||||
if (CONFIG(fuelAlgorithm) == LM_SPEED_DENSITY) {
|
if (CONFIG(fuelAlgorithm) == LM_SPEED_DENSITY) {
|
||||||
engine->engineState.baseFuel = getSpeedDensityFuel(rpm PASS_ENGINE_PARAMETER);
|
engine->engineState.baseFuel = getSpeedDensityFuel(PASS_ENGINE_PARAMETER_F);
|
||||||
} else if (engineConfiguration->fuelAlgorithm == LM_REAL_MAF) {
|
} else if (engineConfiguration->fuelAlgorithm == LM_REAL_MAF) {
|
||||||
float maf = getRealMaf(PASS_ENGINE_PARAMETER_F) + engine->engineLoadAccelEnrichment.getEngineLoadEnrichment(PASS_ENGINE_PARAMETER_F);
|
float maf = getRealMaf(PASS_ENGINE_PARAMETER_F) + engine->engineLoadAccelEnrichment.getEngineLoadEnrichment(PASS_ENGINE_PARAMETER_F);
|
||||||
engine->engineState.baseFuel = getRealMafFuel(maf, rpm PASS_ENGINE_PARAMETER);
|
engine->engineState.baseFuel = getRealMafFuel(maf, rpm PASS_ENGINE_PARAMETER);
|
||||||
|
|
|
@ -75,9 +75,7 @@ EXTERN_ENGINE;
|
||||||
/**
|
/**
|
||||||
* @return per cylinder injection time, in Milliseconds
|
* @return per cylinder injection time, in Milliseconds
|
||||||
*/
|
*/
|
||||||
floatms_t getSpeedDensityFuel(int rpm DECLARE_ENGINE_PARAMETER_S) {
|
floatms_t getSpeedDensityFuel(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
//int rpm = engine->rpmCalculator->rpm();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* most of the values are pre-calculated for performance reasons
|
* most of the values are pre-calculated for performance reasons
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,6 +20,6 @@ float sdMath(engine_configuration_s *engineConfiguration, float airMass, float A
|
||||||
|
|
||||||
void setDefaultVETable(DECLARE_ENGINE_PARAMETER_F);
|
void setDefaultVETable(DECLARE_ENGINE_PARAMETER_F);
|
||||||
void initSpeedDensity(DECLARE_ENGINE_PARAMETER_F);
|
void initSpeedDensity(DECLARE_ENGINE_PARAMETER_F);
|
||||||
floatms_t getSpeedDensityFuel(int rpm DECLARE_ENGINE_PARAMETER_S);
|
floatms_t getSpeedDensityFuel(DECLARE_ENGINE_PARAMETER_F);
|
||||||
|
|
||||||
#endif /* SPEED_DENSITY_H_ */
|
#endif /* SPEED_DENSITY_H_ */
|
||||||
|
|
Loading…
Reference in New Issue