2014-08-29 07:52:33 -07:00
|
|
|
/**
|
|
|
|
* @file fuel_math.h
|
|
|
|
*
|
|
|
|
* @date May 27, 2013
|
2015-01-12 15:04:10 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2015
|
2014-08-29 07:52:33 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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
|
|
|
|
2014-11-24 18:03:34 -08:00
|
|
|
float getBaseFuel(int rpm DECLARE_ENGINE_PARAMETER_S);
|
2014-10-02 11:03:28 -07:00
|
|
|
float getBaseTableFuel(engine_configuration_s *engineConfiguration, int rpm, float engineLoad);
|
2014-11-12 13:05:43 -08:00
|
|
|
float getIatCorrection(float iat DECLARE_ENGINE_PARAMETER_S);
|
|
|
|
float getInjectorLag(float vBatt DECLARE_ENGINE_PARAMETER_S);
|
|
|
|
float getCltCorrection(float clt DECLARE_ENGINE_PARAMETER_S);
|
|
|
|
float getRunningFuel(float baseFuel, int rpm DECLARE_ENGINE_PARAMETER_S);
|
2014-10-02 10:03:00 -07:00
|
|
|
float getCrankingFuel(Engine *engine);
|
2014-11-03 10:03:03 -08:00
|
|
|
float getCrankingFuel3(engine_configuration_s *engineConfiguration, float coolantTemperature, uint32_t revolutionCounterSinceStart);
|
2014-11-12 13:05:43 -08:00
|
|
|
float getFuelMs(int rpm DECLARE_ENGINE_PARAMETER_S);
|
2014-08-29 07:52:33 -07:00
|
|
|
|
|
|
|
#endif /* FUEL_MAP_H_ */
|