2014-08-29 07:52:33 -07:00
|
|
|
/**
|
|
|
|
* @file speed_density.h
|
|
|
|
*
|
|
|
|
* @date May 29, 2014
|
2015-01-12 15:04:10 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2015
|
2014-08-29 07:52:33 -07:00
|
|
|
*/
|
|
|
|
#ifndef SPEED_DENSITY_H_
|
|
|
|
#define SPEED_DENSITY_H_
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
|
|
|
float getTCharge(int rpm, float tps, float coolantTemp, float airTemp);
|
2015-02-27 19:04:43 -08:00
|
|
|
void setDetaultVETable(persistent_config_s *config);
|
2014-11-03 17:03:10 -08:00
|
|
|
float sdMath(engine_configuration_s *engineConfiguration, float VE, float MAP, float AFR, float tempK);
|
2014-08-29 07:52:33 -07:00
|
|
|
|
|
|
|
#define gramm_second_to_cc_minute(gs) ((gs) / 0.0119997981)
|
|
|
|
|
|
|
|
#define cc_minute_to_gramm_second(ccm) ((ccm) * 0.0119997981)
|
|
|
|
|
2015-03-15 09:05:48 -07:00
|
|
|
void setDefaultVETable(DECLARE_ENGINE_PARAMETER_F);
|
2015-02-27 22:04:17 -08:00
|
|
|
void initSpeedDensity(DECLARE_ENGINE_PARAMETER_F);
|
2015-02-27 15:08:55 -08:00
|
|
|
float getSpeedDensityFuel(int rpm DECLARE_ENGINE_PARAMETER_S);
|
2014-08-29 07:52:33 -07:00
|
|
|
|
|
|
|
#endif /* SPEED_DENSITY_H_ */
|