fome-fw/firmware/controllers/math/speed_density.h

25 lines
765 B
C
Raw Normal View History

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);
void setDetaultVETable(engine_configuration_s *engineConfiguration);
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)
void setDetaultVETable(engine_configuration_s *engineConfiguration);
void initSpeedDensity(engine_configuration_s *engineConfiguration);
float getSpeedDensityFuel(Engine *engine, int rpm);
#endif /* SPEED_DENSITY_H_ */