rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes
LongTermFuelTrim Class Reference

#include <long_term_fuel_trim.h>

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

Public Member Functions

void onSlowCallback () override
 
bool needsDelayedShutoff () override
 
void init (LtftState *state)
 
void learn (ClosedLoopFuelResult clResult, float rpm, float fuelLoad)
 
ClosedLoopFuelResult getTrims (float rpm, float fuelLoad)
 
void load ()
 
void store ()
 
void reset ()
 
void applyTrimsToVe ()
 
bool isVeUpdated ()
 
void onLiveDataRead ()
 
void fillRandom ()
 
- Public Member Functions inherited from EngineModule
virtual void initNoConfiguration ()
 
virtual void setDefaultConfiguration ()
 
virtual void onConfigurationChange (engine_configuration_s const *)
 
virtual void onFastCallback ()
 
virtual void onEngineStop ()
 
virtual void onIgnitionStateChanged (bool)
 
virtual void onEnginePhase (float, efitick_t, angle_t, angle_t)
 

Private Member Functions

float getIntegratorGain () const
 
float getMaxAdjustment () const
 
float getMinAdjustment () const
 

Private Attributes

LtftStatem_state
 
bool veNeedRefresh = false
 
bool showUpdateToUser = false
 
Timer pageRefreshTimer {}
 

Additional Inherited Members

- Data Fields inherited from long_term_fuel_trim_state_s
uint32_t ltftCntHit = (uint32_t)0
 
uint32_t ltftCntMiss = (uint32_t)0
 
uint32_t ltftCntDeadband = (uint32_t)0
 
bool ltftLearning: 1 {}
 
bool ltftCorrecting: 1 {}
 
bool ltftSavePending: 1 {}
 
bool ltftLoadPending: 1 {}
 
bool ltftLoadError: 1 {}
 
bool ltftPageRefreshFlag: 1 {}
 
bool unusedBit_9_6: 1 {}
 
bool unusedBit_9_7: 1 {}
 
bool unusedBit_9_8: 1 {}
 
bool unusedBit_9_9: 1 {}
 
bool unusedBit_9_10: 1 {}
 
bool unusedBit_9_11: 1 {}
 
bool unusedBit_9_12: 1 {}
 
bool unusedBit_9_13: 1 {}
 
bool unusedBit_9_14: 1 {}
 
bool unusedBit_9_15: 1 {}
 
bool unusedBit_9_16: 1 {}
 
bool unusedBit_9_17: 1 {}
 
bool unusedBit_9_18: 1 {}
 
bool unusedBit_9_19: 1 {}
 
bool unusedBit_9_20: 1 {}
 
bool unusedBit_9_21: 1 {}
 
bool unusedBit_9_22: 1 {}
 
bool unusedBit_9_23: 1 {}
 
bool unusedBit_9_24: 1 {}
 
bool unusedBit_9_25: 1 {}
 
bool unusedBit_9_26: 1 {}
 
bool unusedBit_9_27: 1 {}
 
bool unusedBit_9_28: 1 {}
 
bool unusedBit_9_29: 1 {}
 
bool unusedBit_9_30: 1 {}
 
bool unusedBit_9_31: 1 {}
 
float ltftCorrection [FT_BANK_COUNT] = {}
 
float ltftAccummulatedCorrection [FT_BANK_COUNT] = {}
 

Detailed Description

Definition at line 20 of file long_term_fuel_trim.h.

Member Function Documentation

◆ applyTrimsToVe()

void LongTermFuelTrim::applyTrimsToVe ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ fillRandom()

void LongTermFuelTrim::fillRandom ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ getIntegratorGain()

float LongTermFuelTrim::getIntegratorGain ( ) const
private

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ getMaxAdjustment()

float LongTermFuelTrim::getMaxAdjustment ( ) const
private

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ getMinAdjustment()

float LongTermFuelTrim::getMinAdjustment ( ) const
private

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ getTrims()

ClosedLoopFuelResult LongTermFuelTrim::getTrims ( float  rpm,
float  fuelLoad 
)

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ init()

void LongTermFuelTrim::init ( LtftState state)

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ isVeUpdated()

bool LongTermFuelTrim::isVeUpdated ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ learn()

void LongTermFuelTrim::learn ( ClosedLoopFuelResult  clResult,
float  rpm,
float  fuelLoad 
)

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ load()

void LongTermFuelTrim::load ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ needsDelayedShutoff()

bool LongTermFuelTrim::needsDelayedShutoff ( )
overridevirtual

Reimplemented from EngineModule.

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ onLiveDataRead()

void LongTermFuelTrim::onLiveDataRead ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ onSlowCallback()

void LongTermFuelTrim::onSlowCallback ( )
overridevirtual

Reimplemented from EngineModule.

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ reset()

void LongTermFuelTrim::reset ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

◆ store()

void LongTermFuelTrim::store ( )

Referenced by LtftState::load().

Here is the caller graph for this function:

Field Documentation

◆ m_state

LtftState* LongTermFuelTrim::m_state
private

Definition at line 39 of file long_term_fuel_trim.h.

◆ pageRefreshTimer

Timer LongTermFuelTrim::pageRefreshTimer {}
private

Definition at line 48 of file long_term_fuel_trim.h.

48{};

◆ showUpdateToUser

bool LongTermFuelTrim::showUpdateToUser = false
private

Definition at line 42 of file long_term_fuel_trim.h.

◆ veNeedRefresh

bool LongTermFuelTrim::veNeedRefresh = false
private

Definition at line 41 of file long_term_fuel_trim.h.


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