rusefi-1/firmware/controllers/algo/fuel_math.h

36 lines
864 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file fuel_math.h
*
* @date May 27, 2013
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*/
2019-10-07 22:49:42 -07:00
#pragma once
2015-07-10 06:01:56 -07:00
2021-05-14 04:17:22 -07:00
#include "rusefi_types.h"
2015-07-10 06:01:56 -07:00
void initFuelMap();
2015-07-10 06:01:56 -07:00
/**
* @return baseFuel with CLT and IAT corrections
*/
float getRunningFuel(float baseFuel);
2015-07-10 06:01:56 -07:00
float getBaroCorrection();
int getNumberOfInjections(injection_mode_e mode);
angle_t getInjectionOffset(float rpm, float load);
float getIatFuelCorrection();
float getCltFuelCorrection();
angle_t getCltTimingCorrection();
float getCrankingFuel(float baseFuel);
float getCrankingFuel3(float baseFuel, uint32_t revolutionCounterSinceStart);
float getInjectionMass(int rpm);
percent_t getInjectorDutyCycle(int rpm);
2017-12-31 16:25:59 -08:00
float getStandardAirCharge();
float getCylinderFuelTrim(size_t cylinderNumber, int rpm, float fuelLoad);
2021-05-14 04:17:22 -07:00
struct AirmassModelBase;
AirmassModelBase* getAirmassModel(engine_load_mode_e mode);