2014-08-29 07:52:33 -07:00
|
|
|
/**
|
|
|
|
* @file fuel_math.h
|
|
|
|
*
|
|
|
|
* @date May 27, 2013
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FUEL_MAP_H_
|
|
|
|
#define FUEL_MAP_H_
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
2014-10-02 11:03:28 -07:00
|
|
|
void prepareFuelMap(engine_configuration_s *engineConfiguration);
|
2014-08-29 07:52:33 -07:00
|
|
|
|
|
|
|
float getBaseFuel(Engine *engine, int rpm);
|
2014-10-02 11:03:28 -07:00
|
|
|
float getBaseTableFuel(engine_configuration_s *engineConfiguration, int rpm, float engineLoad);
|
|
|
|
float getIatCorrection(engine_configuration_s *engineConfiguration, float iat);
|
|
|
|
float getInjectorLag(engine_configuration_s *engineConfiguration, float vBatt);
|
|
|
|
float getCltCorrection(engine_configuration_s *engineConfiguration, float clt);
|
2014-08-29 07:52:33 -07:00
|
|
|
float getRunningFuel(float baseFuel, Engine *engine, int rpm);
|
2014-10-02 10:03:00 -07:00
|
|
|
float getCrankingFuel(Engine *engine);
|
2014-10-02 11:03:28 -07:00
|
|
|
float getStartingFuel(engine_configuration_s *engineConfiguration, float coolantTemperature);
|
2014-08-29 07:52:33 -07:00
|
|
|
float getFuelMs(int rpm, Engine *engine);
|
|
|
|
|
|
|
|
#endif /* FUEL_MAP_H_ */
|