rusEFI
The most advanced open source ECU
|
#include <boost_control.h>
Public Member Functions | |
void | init (IPwm *pmw, const ValueProvider3D *openLoopMap, const ValueProvider3D *closedLoopTargetMap, pid_s *pidParams) |
void | onFastCallback () override |
void | resetLua () |
void | onConfigurationChange (engine_configuration_s const *previousConfig) override |
expected< float > | observePlant () override |
expected< float > | getSetpoint () override |
expected< percent_t > | getOpenLoop (float target) override |
expected< percent_t > | getClosedLoop (float target, float manifoldPressure) override |
void | setOutput (expected< percent_t > outputValue) override |
Public Member Functions inherited from EngineModule | |
virtual void | onSlowCallback () |
virtual void | onIgnitionStateChanged (bool) |
virtual bool | needsDelayedShutoff () |
Public Member Functions inherited from ClosedLoopController< float, percent_t > | |
expected< percent_t > | update () |
Private Member Functions | |
percent_t | getClosedLoopImpl (float target, float manifoldPressure) |
Private Attributes | |
Pid | m_pid |
const ValueProvider3D * | m_openLoopMap = nullptr |
const ValueProvider3D * | m_closedLoopTargetMap = nullptr |
IPwm * | m_pwm = nullptr |
Additional Inherited Members | |
Data Fields inherited from boost_control_s | |
bool | isTpsInvalid: 1 {} |
bool | m_shouldResetPid: 1 {} |
bool | isBelowClosedLoopThreshold: 1 {} |
bool | isNotClosedLoop: 1 {} |
bool | isZeroRpm: 1 {} |
bool | hasInitBoost: 1 {} |
bool | rpmTooLow: 1 {} |
bool | tpsTooLow: 1 {} |
bool | mapTooLow: 1 {} |
bool | isPlantValid: 1 {} |
bool | isBoostControlled: 1 {} |
bool | unusedBit_11_11: 1 {} |
bool | unusedBit_11_12: 1 {} |
bool | unusedBit_11_13: 1 {} |
bool | unusedBit_11_14: 1 {} |
bool | unusedBit_11_15: 1 {} |
bool | unusedBit_11_16: 1 {} |
bool | unusedBit_11_17: 1 {} |
bool | unusedBit_11_18: 1 {} |
bool | unusedBit_11_19: 1 {} |
bool | unusedBit_11_20: 1 {} |
bool | unusedBit_11_21: 1 {} |
bool | unusedBit_11_22: 1 {} |
bool | unusedBit_11_23: 1 {} |
bool | unusedBit_11_24: 1 {} |
bool | unusedBit_11_25: 1 {} |
bool | unusedBit_11_26: 1 {} |
bool | unusedBit_11_27: 1 {} |
bool | unusedBit_11_28: 1 {} |
bool | unusedBit_11_29: 1 {} |
bool | unusedBit_11_30: 1 {} |
bool | unusedBit_11_31: 1 {} |
scaled_channel< int16_t, 2, 1 > | luaTargetAdd = (int16_t)0 |
scaled_channel< int16_t, 100, 1 > | boostOutput = (int16_t)0 |
float | luaTargetMult = (float)0 |
float | openLoopPart = (float)0 |
float | luaOpenLoopAdd = (float)0 |
scaled_channel< int8_t, 2, 1 > | boostControllerClosedLoopPart = (int8_t)0 |
uint8_t | alignmentFill_at_21 [1] |
scaled_channel< int16_t, 30, 1 > | boostControlTarget = (int16_t)0 |
Definition at line 16 of file boost_control.h.
|
overridevirtual |
Implements ClosedLoopController< float, percent_t >.
Definition at line 163 of file boost_control.cpp.
|
private |
Definition at line 133 of file boost_control.cpp.
Referenced by getClosedLoop().
|
overridevirtual |
Implements ClosedLoopController< float, percent_t >.
Definition at line 94 of file boost_control.cpp.
|
overridevirtual |
Implements ClosedLoopController< float, percent_t >.
Definition at line 57 of file boost_control.cpp.
void BoostController::init | ( | IPwm * | pmw, |
const ValueProvider3D * | openLoopMap, | ||
const ValueProvider3D * | closedLoopTargetMap, | ||
pid_s * | pidParams | ||
) |
Definition at line 24 of file boost_control.cpp.
Referenced by initBoostCtrl().
|
overridevirtual |
Implements ClosedLoopController< float, percent_t >.
Definition at line 47 of file boost_control.cpp.
|
overridevirtual |
Reimplemented from EngineModule.
Definition at line 41 of file boost_control.cpp.
|
overridevirtual |
Reimplemented from EngineModule.
Definition at line 195 of file boost_control.cpp.
void BoostController::resetLua | ( | ) |
Definition at line 35 of file boost_control.cpp.
Referenced by init().
|
overridevirtual |
Implements ClosedLoopController< float, percent_t >.
Definition at line 173 of file boost_control.cpp.
Referenced by onFastCallback().
|
private |
Definition at line 42 of file boost_control.h.
Referenced by getSetpoint(), and init().
|
private |
Definition at line 41 of file boost_control.h.
Referenced by getOpenLoop(), and init().
|
private |
Definition at line 39 of file boost_control.h.
Referenced by getClosedLoop(), getClosedLoopImpl(), init(), onConfigurationChange(), and onFastCallback().
|
private |
Definition at line 43 of file boost_control.h.
Referenced by init(), and setOutput().