rusEFI
The most advanced open source ECU
|
#include <closed_loop_idle.h>
Public Member Functions | |
LongTermIdleTrim () | |
float | getLtitFactor (float rpm, float clt) const |
void | update (float rpm, float clt, bool acActive, bool fan1Active, bool fan2Active, float idleIntegral) |
void | smoothLtitTable (float intensity) |
void | onIgnitionStateChanged (bool ignitionOn) |
void | checkIfShouldSave () |
virtual void | loadLtitFromConfig () |
bool | hasValidData () const |
Data Fields | |
bool | updatedLtit = false |
![]() | |
bool | isStableIdle: 1 {} |
bool | unusedBit_1_1: 1 {} |
bool | unusedBit_1_2: 1 {} |
bool | unusedBit_1_3: 1 {} |
bool | unusedBit_1_4: 1 {} |
bool | unusedBit_1_5: 1 {} |
bool | unusedBit_1_6: 1 {} |
bool | unusedBit_1_7: 1 {} |
bool | unusedBit_1_8: 1 {} |
bool | unusedBit_1_9: 1 {} |
bool | unusedBit_1_10: 1 {} |
bool | unusedBit_1_11: 1 {} |
bool | unusedBit_1_12: 1 {} |
bool | unusedBit_1_13: 1 {} |
bool | unusedBit_1_14: 1 {} |
bool | unusedBit_1_15: 1 {} |
bool | unusedBit_1_16: 1 {} |
bool | unusedBit_1_17: 1 {} |
bool | unusedBit_1_18: 1 {} |
bool | unusedBit_1_19: 1 {} |
bool | unusedBit_1_20: 1 {} |
bool | unusedBit_1_21: 1 {} |
bool | unusedBit_1_22: 1 {} |
bool | unusedBit_1_23: 1 {} |
bool | unusedBit_1_24: 1 {} |
bool | unusedBit_1_25: 1 {} |
bool | unusedBit_1_26: 1 {} |
bool | unusedBit_1_27: 1 {} |
bool | unusedBit_1_28: 1 {} |
bool | unusedBit_1_29: 1 {} |
bool | unusedBit_1_30: 1 {} |
bool | unusedBit_1_31: 1 {} |
float | emaError = (float)0 |
Private Member Functions | |
bool | isValidConditionsForLearning (float idleIntegral) const |
void | initializeTableWithDefaults () |
Private Attributes | |
float | ltitTableHelper [LTIT_TABLE_SIZE] |
bool | ltitTableInitialized = false |
Timer | m_updateTimer |
Timer | m_stableIdleTimer |
Timer | m_ignitionOffTimer |
bool | m_ignitionState = false |
bool | m_pendingSave = false |
Definition at line 14 of file closed_loop_idle.h.
LongTermIdleTrim::LongTermIdleTrim | ( | ) |
Definition at line 12 of file closed_loop_idle.cpp.
void LongTermIdleTrim::checkIfShouldSave | ( | ) |
Definition at line 229 of file closed_loop_idle.cpp.
Referenced by IdleController::onFastCallback().
Definition at line 67 of file closed_loop_idle.cpp.
bool LongTermIdleTrim::hasValidData | ( | ) | const |
Definition at line 27 of file closed_loop_idle.cpp.
Referenced by loadLtitFromConfig().
|
private |
Definition at line 19 of file closed_loop_idle.cpp.
Referenced by loadLtitFromConfig(), and LongTermIdleTrim().
Definition at line 79 of file closed_loop_idle.cpp.
Referenced by update().
|
virtual |
Definition at line 51 of file closed_loop_idle.cpp.
Referenced by IdleController::init(), and update().
void LongTermIdleTrim::onIgnitionStateChanged | ( | bool | ignitionOn | ) |
Definition at line 211 of file closed_loop_idle.cpp.
Referenced by IdleController::onIgnitionStateChanged().
void LongTermIdleTrim::smoothLtitTable | ( | float | intensity | ) |
Definition at line 256 of file closed_loop_idle.cpp.
void LongTermIdleTrim::update | ( | float | rpm, |
float | clt, | ||
bool | acActive, | ||
bool | fan1Active, | ||
bool | fan2Active, | ||
float | idleIntegral | ||
) |
Definition at line 103 of file closed_loop_idle.cpp.
Referenced by IdleController::updateLtit().
|
private |
Definition at line 32 of file closed_loop_idle.h.
Referenced by checkIfShouldSave(), getLtitFactor(), initializeTableWithDefaults(), loadLtitFromConfig(), smoothLtitTable(), and update().
|
private |
Definition at line 33 of file closed_loop_idle.h.
Referenced by getLtitFactor(), loadLtitFromConfig(), LongTermIdleTrim(), and update().
|
private |
Definition at line 38 of file closed_loop_idle.h.
Referenced by checkIfShouldSave(), and onIgnitionStateChanged().
|
private |
Definition at line 40 of file closed_loop_idle.h.
Referenced by checkIfShouldSave(), and onIgnitionStateChanged().
|
private |
Definition at line 43 of file closed_loop_idle.h.
Referenced by checkIfShouldSave(), LongTermIdleTrim(), onIgnitionStateChanged(), and smoothLtitTable().
|
private |
Definition at line 37 of file closed_loop_idle.h.
Referenced by onIgnitionStateChanged(), and update().
|
private |
Definition at line 36 of file closed_loop_idle.h.
Referenced by isValidConditionsForLearning(), onIgnitionStateChanged(), and update().
bool LongTermIdleTrim::updatedLtit = false |
Definition at line 22 of file closed_loop_idle.h.
Referenced by onIgnitionStateChanged(), and update().