mirror of https://github.com/rusefi/rusefi-1.git
36 lines
864 B
C
36 lines
864 B
C
/**
|
|
* @file fuel_math.h
|
|
*
|
|
* @date May 27, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "rusefi_types.h"
|
|
|
|
void initFuelMap();
|
|
|
|
/**
|
|
* @return baseFuel with CLT and IAT corrections
|
|
*/
|
|
float getRunningFuel(float baseFuel);
|
|
|
|
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);
|
|
|
|
float getStandardAirCharge();
|
|
float getCylinderFuelTrim(size_t cylinderNumber, int rpm, float fuelLoad);
|
|
|
|
struct AirmassModelBase;
|
|
AirmassModelBase* getAirmassModel(engine_load_mode_e mode);
|