rusEFI
The most advanced open source ECU
Public Member Functions
FuelComputerBase Class Referenceabstract

#include <fuel_computer.h>

Inheritance diagram for FuelComputerBase:
Inheritance graph
[legend]
Collaboration diagram for FuelComputerBase:
Collaboration graph
[legend]

Public Member Functions

mass_t getCycleFuel (mass_t airmass, int rpm, float load) override
 
virtual float getStoichiometricRatio () const =0
 
virtual float getTargetLambda (int rpm, float load) const =0
 
virtual float getTargetLambdaLoadAxis (float defaultLoad) const =0
 
- Public Member Functions inherited from IFuelComputer
temperature_t getTCharge (int rpm, float tps)
 
float getLoadOverride (float defaultLoad, load_override_e overrideMode) const
 

Additional Inherited Members

- Data Fields inherited from fuel_computer_s
float totalFuelCorrection = (float)0
 
running_fuel_s running
 
scaled_channel< uint16_t, 100, 1 > afrTableYAxis = (uint16_t)0
 
scaled_channel< uint16_t, 10000, 1 > targetLambda = (uint16_t)0
 
scaled_channel< uint16_t, 1000, 1 > targetAFR = (uint16_t)0
 
scaled_channel< uint16_t, 1000, 1 > stoichiometricRatio = (uint16_t)0
 
float sdTcharge_coff = (float)0
 
float sdAirMassInOneCylinder = (float)0
 
float normalizedCylinderFilling = (float)0
 
uint8_t brokenInjector = (uint8_t)0
 
uint8_t unused88 = (uint8_t)0
 
uint16_t idealEngineTorque = (uint16_t)0
 
bool injectorHwIssue: 1 {}
 
bool unusedBit_13_1: 1 {}
 
bool unusedBit_13_2: 1 {}
 
bool unusedBit_13_3: 1 {}
 
bool unusedBit_13_4: 1 {}
 
bool unusedBit_13_5: 1 {}
 
bool unusedBit_13_6: 1 {}
 
bool unusedBit_13_7: 1 {}
 
bool unusedBit_13_8: 1 {}
 
bool unusedBit_13_9: 1 {}
 
bool unusedBit_13_10: 1 {}
 
bool unusedBit_13_11: 1 {}
 
bool unusedBit_13_12: 1 {}
 
bool unusedBit_13_13: 1 {}
 
bool unusedBit_13_14: 1 {}
 
bool unusedBit_13_15: 1 {}
 
bool unusedBit_13_16: 1 {}
 
bool unusedBit_13_17: 1 {}
 
bool unusedBit_13_18: 1 {}
 
bool unusedBit_13_19: 1 {}
 
bool unusedBit_13_20: 1 {}
 
bool unusedBit_13_21: 1 {}
 
bool unusedBit_13_22: 1 {}
 
bool unusedBit_13_23: 1 {}
 
bool unusedBit_13_24: 1 {}
 
bool unusedBit_13_25: 1 {}
 
bool unusedBit_13_26: 1 {}
 
bool unusedBit_13_27: 1 {}
 
bool unusedBit_13_28: 1 {}
 
bool unusedBit_13_29: 1 {}
 
bool unusedBit_13_30: 1 {}
 
bool unusedBit_13_31: 1 {}
 

Detailed Description

Definition at line 21 of file fuel_computer.h.

Member Function Documentation

◆ getCycleFuel()

mass_t FuelComputerBase::getCycleFuel ( mass_t  airmass,
int  rpm,
float  load 
)
overridevirtual

Implements IFuelComputer.

Definition at line 13 of file fuel_computer.cpp.

13  {
14  load = getTargetLambdaLoadAxis(load);
15 
16  float stoich = getStoichiometricRatio();
17  float lambda = getTargetLambda(rpm, load);
18  float afr = stoich * lambda;
19 
20  afrTableYAxis = load;
21  targetLambda = lambda;
22  targetAFR = afr;
23  stoichiometricRatio = stoich;
24 
25  return airmass / afr;
26 }
virtual float getStoichiometricRatio() const =0
virtual float getTargetLambda(int rpm, float load) const =0
virtual float getTargetLambdaLoadAxis(float defaultLoad) const =0
scaled_channel< uint16_t, 1000, 1 > targetAFR
scaled_channel< uint16_t, 1000, 1 > stoichiometricRatio
scaled_channel< uint16_t, 10000, 1 > targetLambda
scaled_channel< uint16_t, 100, 1 > afrTableYAxis

Referenced by getBaseFuelMass().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStoichiometricRatio()

virtual float FuelComputerBase::getStoichiometricRatio ( ) const
pure virtual

Implemented in FuelComputer.

Referenced by getCycleFuel().

Here is the caller graph for this function:

◆ getTargetLambda()

virtual float FuelComputerBase::getTargetLambda ( int  rpm,
float  load 
) const
pure virtual

Implemented in FuelComputer.

Referenced by getCycleFuel().

Here is the caller graph for this function:

◆ getTargetLambdaLoadAxis()

virtual float FuelComputerBase::getTargetLambdaLoadAxis ( float  defaultLoad) const
pure virtual

Implemented in FuelComputer.

Referenced by getCycleFuel().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: