rusEFI
The most advanced open source ECU
|
Fuel amount calculation logic.
This file is part of rusEfi - see http://rusefi.com
rusEfi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file fuel_math.cpp.
Variables | |
fuel_Map3D_t | veMap |
static mapEstimate_Map3D_t | mapEstimationTable {"mape"} |
static SpeedDensityAirmass | sdAirmass (veMap, mapEstimationTable) |
static MafAirmass | mafAirmass (veMap) |
static AlphaNAirmass | alphaNAirmass (veMap) |
static Hysteresis | stage2Hysteresis |
AirmassModelBase* getAirmassModel | ( | engine_load_mode_e | mode | ) |
Definition at line 153 of file fuel_math.cpp.
Referenced by getBaseFuelMass(), and lua_getAirmass().
float getBaroCorrection | ( | ) |
Definition at line 386 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
|
static |
Definition at line 177 of file fuel_math.cpp.
Referenced by getInjectionMass().
float getCltFuelCorrection | ( | ) |
Engine warm-up fuel correction.
Definition at line 359 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
angle_t getCltTimingCorrection | ( | ) |
Definition at line 368 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
float getCrankingFuel | ( | float | baseFuel | ) |
Definition at line 429 of file fuel_math.cpp.
Referenced by getCycleFuelMass().
float getCrankingFuel3 | ( | float | baseFuel, |
uint32_t | revolutionCounterSinceStart | ||
) |
Cranking fuel is different depending on engine coolant temperature If the sensor is failed, use 20 deg C
Definition at line 42 of file fuel_math.cpp.
Referenced by getCrankingFuel().
|
static |
Definition at line 294 of file fuel_math.cpp.
Referenced by getInjectionMass().
float getCylinderFuelTrim | ( | size_t | cylinderNumber, |
int | rpm, | ||
float | fuelLoad | ||
) |
Definition at line 447 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
percent_t getFuelALSCorrection | ( | int | rpm | ) |
Definition at line 408 of file fuel_math.cpp.
Referenced by AntilagSystemBase::update().
float getIatFuelCorrection | ( | ) |
Definition at line 377 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
float getInjectionMass | ( | int | rpm | ) |
Definition at line 306 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
float getInjectionModeDurationMultiplier | ( | ) |
Definition at line 257 of file fuel_math.cpp.
Referenced by getInjectionMass().
angle_t getInjectionOffset | ( | float | rpm, |
float | load | ||
) |
Definition at line 211 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
percent_t getInjectorDutyCycle | ( | int | rpm | ) |
Definition at line 282 of file fuel_math.cpp.
Referenced by canDashboardHaltech(), EngineState::periodicFastCallback(), populateFrame(), LimpManager::updateState(), and updateTunerStudioState().
percent_t getInjectorDutyCycleStage2 | ( | int | rpm | ) |
Definition at line 288 of file fuel_math.cpp.
Referenced by updateTunerStudioState().
float getMaxAirflowAtMap | ( | float | map | ) |
Definition at line 170 of file fuel_math.cpp.
Referenced by ThrottleModel::maxEngineFlow().
int getNumberOfInjections | ( | injection_mode_e | mode | ) |
Number of injections using each injector per engine cycle
Definition at line 242 of file fuel_math.cpp.
Referenced by getInjectorDutyCycle(), getInjectorDutyCycleStage2(), and InjectionEvent::onTriggerTooth().
float getRunningFuel | ( | float | baseFuel | ) |
Definition at line 113 of file fuel_math.cpp.
Referenced by getCycleFuelMass().
float getStage2InjectionFraction | ( | int | rpm, |
float | load | ||
) |
Definition at line 462 of file fuel_math.cpp.
Referenced by EngineState::periodicFastCallback().
float getStandardAirCharge | ( | ) |
Standard cylinder air charge - 100% VE at standard temperature, grams per cylinder
Should we bother caching 'getStandardAirCharge' result or can we afford to run the math every time we calculate fuel?
Definition at line 438 of file fuel_math.cpp.
Referenced by MafAirmass::getAirmassImpl(), and getBaseFuelMass().
void initFuelMap | ( | ) |
Initialize fuel map data structure.
Definition at line 352 of file fuel_math.cpp.
Referenced by initDataStructures().
|
static |
Referenced by getAirmassModel().
|
static |
Referenced by getAirmassModel().
|
static |
Definition at line 38 of file fuel_math.cpp.
Referenced by initFuelMap().
|
static |
Referenced by getAirmassModel(), and getMaxAirflowAtMap().
|
static |
Definition at line 460 of file fuel_math.cpp.
Referenced by getStage2InjectionFraction().
|
extern |
Definition at line 28 of file speed_density.cpp.
Referenced by initSpeedDensity().