|
rusEFI
The most advanced open source ECU
|
#include <idle_thread.h>


Public Types | |
| using | interface_t = IdleController |
Public Types inherited from IIdleController | |
| enum class | Phase : uint8_t { Cranking , Idling , Coasting , CrankToIdleTaper , Running } |
Public Member Functions | |
| void | init () |
| float | getIdlePosition (float rpm) |
| TargetInfo | getTargetRpm (float clt) override |
| Phase | determinePhase (float rpm, TargetInfo targetRpm, SensorResult tps, float vss, float crankingTaperFraction) override |
| float | getCrankingTaperFraction (float clt) const override |
| percent_t | getCrankingOpenLoop (float clt) const override |
| percent_t | getRunningOpenLoop (IIdleController::Phase phase, float rpm, float clt, SensorResult tps) override |
| percent_t | getOpenLoop (Phase phase, float rpm, float clt, SensorResult tps, float crankingTaperFraction) override |
| float | getIdleTimingAdjustment (float rpm) override |
| float | getIdleTimingAdjustment (float rpm, float targetRpm, Phase phase) |
| float | getClosedLoop (IIdleController::Phase phase, float tpsPos, float rpm, float targetRpm) override |
| void | onConfigurationChange (engine_configuration_s const *previousConfig) override final |
| void | onFastCallback () override final |
| void | onEngineStop () override final |
| bool | isIdlingOrTaper () const override |
| bool | isCoastingAdvance () const override |
| Phase | getCurrentPhase () const override |
| Pid * | getIdlePid () |
| void | updateLtit (float rpm, float clt, bool acActive, bool fan1Active, bool fan2Active, float idleIntegral) |
| void | onIgnitionStateChanged (bool ignitionOn) override |
Public Member Functions inherited from EngineModule | |
| virtual void | initNoConfiguration () |
| virtual void | setDefaultConfiguration () |
| virtual void | onSlowCallback () |
| virtual bool | needsDelayedShutoff () |
| virtual void | onEnginePhase (float, efitick_t, angle_t, angle_t) |
Private Attributes | |
| Phase | m_lastPhase = Phase::Cranking |
| efitimeus_t | restoreAfterPidResetTimeUs = 0 |
| efitimeus_t | lastTimeRunningUs = 0 |
| float | m_crankTaperEndTime = 0.0f |
| float | m_idleTimingSoftEntryEndTime = 0.0f |
| Timer | m_timeInIdlePhase |
| float | m_lastAutomaticPosition = 0 |
| Pid | m_timingPid |
| float | m_modeledFlowIdleTiming = 0 |
| Biquad | m_timingHpf |
Definition at line 56 of file idle_thread.h.
Definition at line 59 of file idle_thread.h.
|
overridevirtual |
Implements IIdleController.
Definition at line 61 of file idle_thread.cpp.
Referenced by getIdlePosition().


|
overridevirtual |
Implements IIdleController.
Definition at line 253 of file idle_thread.cpp.
Referenced by getIdlePosition().


Implements IIdleController.
Definition at line 119 of file idle_thread.cpp.
Referenced by getOpenLoop().


Implements IIdleController.
Definition at line 114 of file idle_thread.cpp.
Referenced by getIdlePosition().


|
inlineoverridevirtual |
Implements IIdleController.
Definition at line 96 of file idle_thread.h.
Referenced by LongTermIdleTrim::update().

|
inline |
Definition at line 107 of file idle_thread.h.
Referenced by applyPidSettings(), getClosedLoop(), getIdlePosition(), init(), onConfigurationChange(), and onEngineStop().

Definition at line 343 of file idle_thread.cpp.

Implements IIdleController.
Definition at line 216 of file idle_thread.cpp.
Referenced by getIdleTimingAdjustment().


Definition at line 220 of file idle_thread.cpp.

|
overridevirtual |
Implements IIdleController.
Definition at line 183 of file idle_thread.cpp.
Referenced by getIdlePosition().


|
overridevirtual |
Implements IIdleController.
Definition at line 123 of file idle_thread.cpp.
Referenced by getOpenLoop().


|
overridevirtual |
Implements IIdleController.
Definition at line 27 of file idle_thread.cpp.
Referenced by getIdlePosition().


| void IdleController::init | ( | ) |
Definition at line 479 of file idle_thread.cpp.
Referenced by startIdleThread().


|
inlineoverridevirtual |
Implements IIdleController.
Definition at line 92 of file idle_thread.h.
Referenced by getRunningAdvance().

|
inlineoverridevirtual |
Implements IIdleController.
Definition at line 88 of file idle_thread.h.
Referenced by getRunningAdvance(), and AirmassVeModelBase::getVe().

|
finaloverridevirtual |
Reimplemented from EngineModule.
Definition at line 473 of file idle_thread.cpp.

|
finaloverridevirtual |
Reimplemented from EngineModule.
Definition at line 469 of file idle_thread.cpp.

|
finaloverridevirtual |
Reimplemented from EngineModule.
Definition at line 460 of file idle_thread.cpp.

|
overridevirtual |
Reimplemented from EngineModule.
Definition at line 495 of file idle_thread.cpp.

| void IdleController::updateLtit | ( | float | rpm, |
| float | clt, | ||
| bool | acActive, | ||
| bool | fan1Active, | ||
| bool | fan2Active, | ||
| float | idleIntegral | ||
| ) |
Definition at line 489 of file idle_thread.cpp.
Referenced by getIdlePosition().


| PidCic IdleController::idleCicPid |
Definition at line 104 of file idle_thread.h.
Referenced by getIdlePid().
| PidIndustrial IdleController::industrialWithOverrideIdlePid |
Definition at line 100 of file idle_thread.h.
Referenced by getClosedLoop(), and getIdlePid().
|
private |
Definition at line 125 of file idle_thread.h.
Referenced by getRunningOpenLoop().
|
private |
Definition at line 127 of file idle_thread.h.
Referenced by determinePhase(), and getIdleTimingAdjustment().
|
private |
Definition at line 128 of file idle_thread.h.
Referenced by determinePhase(), and getIdleTimingAdjustment().
|
private |
Definition at line 133 of file idle_thread.h.
Referenced by getClosedLoop().
|
private |
Definition at line 122 of file idle_thread.h.
Referenced by getCurrentPhase(), getIdlePosition(), getIdleTimingAdjustment(), isCoastingAdvance(), and isIdlingOrTaper().
|
private |
Definition at line 136 of file idle_thread.h.
Referenced by getIdlePosition(), and getIdleTimingAdjustment().
|
private |
Definition at line 130 of file idle_thread.h.
Referenced by getIdlePosition(), and getTargetRpm().
|
private |
Definition at line 137 of file idle_thread.h.
Referenced by getIdlePosition(), and init().
|
private |
Definition at line 135 of file idle_thread.h.
Referenced by getIdleTimingAdjustment(), and init().
|
private |
Definition at line 123 of file idle_thread.h.
Referenced by getClosedLoop().