2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file speed_density.h
|
|
|
|
*
|
|
|
|
* @date May 29, 2014
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
2019-12-23 21:03:53 -08:00
|
|
|
|
|
|
|
#pragma once
|
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)
|
|
|
|
|
2019-06-19 18:24:09 -07:00
|
|
|
temperature_t getTCharge(int rpm, float tps, float coolantTemperature, float airTemperature DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2019-01-27 21:00:19 -08:00
|
|
|
float getCylinderAirMass(float volumetricEfficiency, float MAP, float tempK DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2019-01-27 20:41:46 -08:00
|
|
|
float sdMath(float airMass, float AFR DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
|
2017-05-15 20:33:22 -07:00
|
|
|
void setDefaultVETable(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
|
|
|
void initSpeedDensity(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2019-01-27 22:25:23 -08:00
|
|
|
floatms_t getSpeedDensityFuel(float map DECLARE_ENGINE_PARAMETER_SUFFIX);
|