rusEFI
The most advanced open source ECU
|
#include <vvt.h>
Public Member Functions | |
VvtController (int index) | |
void | init (const ValueProvider3D *targetMap, IPwm *pwm) |
void | onFastCallback () override |
void | onConfigurationChange (engine_configuration_s const *previousConfig) override |
expected< angle_t > | observePlant () override |
expected< angle_t > | getSetpoint () override |
expected< percent_t > | getOpenLoop (angle_t target) override |
expected< percent_t > | getClosedLoop (angle_t setpoint, angle_t observation) override |
void | setOutput (expected< percent_t > outputValue) override |
uint8_t | getCamIndex () |
![]() | |
virtual void | initNoConfiguration () |
virtual void | setDefaultConfiguration () |
virtual void | onSlowCallback () |
virtual void | onEngineStop () |
virtual void | onIgnitionStateChanged (bool) |
virtual bool | needsDelayedShutoff () |
virtual void | onEnginePhase (float, efitick_t, angle_t, angle_t) |
![]() | |
void | update () |
Private Attributes | |
const int | index |
const uint8_t | m_bank |
const uint8_t | m_cam |
Pid | m_pid |
bool | m_engineRunningLongEnough = false |
bool | m_isRpmHighEnough = false |
bool | m_isCltWarmEnough = false |
const ValueProvider3D * | m_targetMap = nullptr |
IPwm * | m_pwm = nullptr |
Additional Inherited Members | |
![]() | |
scaled_channel< int16_t, 10, 1 > | vvtTarget = (int16_t)0 |
scaled_channel< uint8_t, 2, 1 > | vvtOutput = (uint8_t)0 |
uint8_t | alignmentFill_at_3 [1] = {} |
|
inline |
|
overridevirtual |
Implements ClosedLoopController< angle_t, percent_t >.
Definition at line 106 of file vvt.cpp.
Implements ClosedLoopController< angle_t, percent_t >.
Definition at line 90 of file vvt.cpp.
Implements ClosedLoopController< angle_t, percent_t >.
Definition at line 66 of file vvt.cpp.
void VvtController::init | ( | const ValueProvider3D * | targetMap, |
IPwm * | pwm | ||
) |
Definition at line 29 of file vvt.cpp.
Implements ClosedLoopController< angle_t, percent_t >.
Definition at line 58 of file vvt.cpp.
|
overridevirtual |
Reimplemented from EngineModule.
Definition at line 52 of file vvt.cpp.
|
overridevirtual |
Reimplemented from EngineModule.
Definition at line 37 of file vvt.cpp.
Implements ClosedLoopController< angle_t, percent_t >.
Definition at line 122 of file vvt.cpp.
|
private |
Definition at line 49 of file vvt.h.
Referenced by getClosedLoop(), getSetpoint(), init(), observePlant(), onConfigurationChange(), onFastCallback(), and setOutput().
|
private |
Definition at line 51 of file vvt.h.
Referenced by observePlant().
|
private |
Definition at line 53 of file vvt.h.
Referenced by getCamIndex(), getClosedLoop(), init(), observePlant(), and onConfigurationChange().
Definition at line 58 of file vvt.h.
Referenced by getSetpoint(), and onFastCallback().
Definition at line 60 of file vvt.h.
Referenced by getSetpoint(), and onFastCallback().
Definition at line 59 of file vvt.h.
Referenced by getSetpoint(), and onFastCallback().
|
private |
Definition at line 55 of file vvt.h.
Referenced by getClosedLoop(), init(), onConfigurationChange(), and setOutput().
Definition at line 63 of file vvt.h.
Referenced by init(), onFastCallback(), and setOutput().
|
private |
Definition at line 62 of file vvt.h.
Referenced by getSetpoint(), init(), and onFastCallback().