2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file speed_density.h
|
|
|
|
*
|
|
|
|
* @date May 29, 2014
|
2017-01-03 03:05:22 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
#ifndef SPEED_DENSITY_H_
|
|
|
|
#define SPEED_DENSITY_H_
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
2016-10-11 18:03:00 -07:00
|
|
|
float getTCharge(int rpm, float tps, float coolantTemp, float airTemp DECLARE_ENGINE_PARAMETER_S);
|
2015-07-10 06:01:56 -07:00
|
|
|
void setDetaultVETable(persistent_config_s *config);
|
2015-12-02 17:10:06 -08:00
|
|
|
float getAirMass(engine_configuration_s *engineConfiguration, float VE, float MAP, float tempK);
|
|
|
|
float sdMath(engine_configuration_s *engineConfiguration, float airMass, float AFR);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#define gramm_second_to_cc_minute(gs) ((gs) / 0.0119997981)
|
|
|
|
|
|
|
|
#define cc_minute_to_gramm_second(ccm) ((ccm) * 0.0119997981)
|
|
|
|
|
|
|
|
void setDefaultVETable(DECLARE_ENGINE_PARAMETER_F);
|
|
|
|
void initSpeedDensity(DECLARE_ENGINE_PARAMETER_F);
|
2017-03-25 18:03:18 -07:00
|
|
|
floatms_t getSpeedDensityFuel(DECLARE_ENGINE_PARAMETER_F);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* SPEED_DENSITY_H_ */
|