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 "engine_ptr.h"
|
|
|
|
#include "rusefi_types.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-01-10 20:48:05 -08:00
|
|
|
void initFuelMap(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return baseFuel with CLT and IAT corrections
|
|
|
|
*/
|
2017-05-15 20:33:22 -07:00
|
|
|
floatms_t getRunningFuel(floatms_t baseFuel DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2017-05-15 20:33:22 -07:00
|
|
|
float getBaroCorrection(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
|
|
|
int getNumberOfInjections(injection_mode_e mode DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2020-07-20 23:11:48 -07:00
|
|
|
angle_t getInjectionOffset(float rpm, float load DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2020-04-18 15:45:30 -07:00
|
|
|
float getIatFuelCorrection(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2020-10-23 17:25:47 -07:00
|
|
|
|
2017-05-15 20:33:22 -07:00
|
|
|
float getCltFuelCorrection(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2018-03-22 10:37:34 -07:00
|
|
|
float getFuelCutOffCorrection(efitick_t nowNt, int rpm DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2017-05-15 20:33:22 -07:00
|
|
|
angle_t getCltTimingCorrection(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2020-10-26 04:23:13 -07:00
|
|
|
float getCrankingFuel(float baseFuel DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
float getCrankingFuel3(float baseFuel, uint32_t revolutionCounterSinceStart DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2021-03-03 04:30:56 -08:00
|
|
|
floatms_t getInjectionMass(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2017-05-15 20:33:22 -07:00
|
|
|
percent_t getInjectorDutyCycle(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2017-12-31 16:25:59 -08:00
|
|
|
|
2020-05-05 05:01:40 -07:00
|
|
|
float getStandardAirCharge(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
2021-05-14 04:17:22 -07:00
|
|
|
|
|
|
|
struct AirmassModelBase;
|
|
|
|
AirmassModelBase* getAirmassModel(engine_load_mode_e mode DECLARE_ENGINE_PARAMETER_SUFFIX);
|