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

#include <electronic_throttle_impl.h>

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

Public Member Functions

 EtbController2 (const ValueProvider3D &throttle2TrimTable)
 
percent_t getThrottleTrim (float rpm, percent_t) const override
 
- Public Member Functions inherited from EtbController
bool init (dc_function_e function, DcMotor *motor, pid_s *pidParameters, const ValueProvider3D *pedalMap) override
 
void setIdlePosition (percent_t pos) override
 
void setWastegatePosition (percent_t pos) override
 
void reset (const char *reason) override
 
void update () override
 
void onConfigurationChange (pid_s *previousConfiguration)
 
void showStatus ()
 
expected< percent_tobservePlant () override
 
expected< percent_tgetSetpoint () override
 
expected< percent_tgetSetpointEtb ()
 
expected< percent_tgetSetpointWastegate () const
 
expected< percent_tgetSetpointIdleValve () const
 
expected< percent_tgetOpenLoop (percent_t target) override
 
expected< percent_tgetClosedLoop (percent_t setpoint, percent_t observation) override
 
expected< percent_tgetClosedLoopAutotune (percent_t setpoint, percent_t actualThrottlePosition)
 
dc_function_e getFunction () const
 
void checkJam (percent_t setpoint, percent_t observation)
 
void setOutput (expected< percent_t > outputValue) override
 
const pid_state_sgetPidState () const override
 
float getCurrentTarget () const override
 
bool isEtbMode () const override
 
void setLuaAdjustment (percent_t adjustment) override
 
float getLuaAdjustment () const
 
- Public Member Functions inherited from IEtbController
virtual void autoCalibrateTps (bool reportToTs=true)
 
- Public Member Functions inherited from ClosedLoopController< percent_t, percent_t >
void update ()
 

Private Attributes

const ValueProvider3Dm_throttle2Trim
 

Additional Inherited Members

- Data Fields inherited from EtbController
float prevOutput = 0
 
- Data Fields inherited from electronic_throttle_s
float targetWithIdlePosition = (float)0
 
float trim = (float)0
 
float boardEtbAdjustment = (float)0
 
float luaAdjustment = (float)0
 
float m_wastegatePosition = (float)0
 
float m_lastPidDtMs = (float)0
 
percent_t etbFeedForward = (percent_t)0
 
float integralError = (float)0
 
float etbCurrentTarget = (float)0
 
scaled_channel< int16_t, 100, 1 > m_adjustedTarget = (int16_t)0
 
uint8_t alignmentFill_at_38 [2] = {}
 
bool etbRevLimitActive: 1 {}
 
bool jamDetected: 1 {}
 
bool validPlantPosition: 1 {}
 
bool unusedBit_14_3: 1 {}
 
bool unusedBit_14_4: 1 {}
 
bool unusedBit_14_5: 1 {}
 
bool unusedBit_14_6: 1 {}
 
bool unusedBit_14_7: 1 {}
 
bool unusedBit_14_8: 1 {}
 
bool unusedBit_14_9: 1 {}
 
bool unusedBit_14_10: 1 {}
 
bool unusedBit_14_11: 1 {}
 
bool unusedBit_14_12: 1 {}
 
bool unusedBit_14_13: 1 {}
 
bool unusedBit_14_14: 1 {}
 
bool unusedBit_14_15: 1 {}
 
bool unusedBit_14_16: 1 {}
 
bool unusedBit_14_17: 1 {}
 
bool unusedBit_14_18: 1 {}
 
bool unusedBit_14_19: 1 {}
 
bool unusedBit_14_20: 1 {}
 
bool unusedBit_14_21: 1 {}
 
bool unusedBit_14_22: 1 {}
 
bool unusedBit_14_23: 1 {}
 
bool unusedBit_14_24: 1 {}
 
bool unusedBit_14_25: 1 {}
 
bool unusedBit_14_26: 1 {}
 
bool unusedBit_14_27: 1 {}
 
bool unusedBit_14_28: 1 {}
 
bool unusedBit_14_29: 1 {}
 
bool unusedBit_14_30: 1 {}
 
bool unusedBit_14_31: 1 {}
 
uint16_t etbTpsErrorCounter = (uint16_t)0
 
uint16_t etbPpsErrorCounter = (uint16_t)0
 
int8_t etbErrorCode = (int8_t)0
 
int8_t etbErrorCodeBlinker = (int8_t)0
 
int8_t tcEtbDrop = (int8_t)0
 
uint8_t alignmentFill_at_51 [1] = {}
 
scaled_channel< uint16_t, 100, 1 > jamTimer = (uint16_t)0
 
int8_t adjustedEtbTarget = (int8_t)0
 
uint8_t state = (uint8_t)0
 
- Protected Member Functions inherited from EtbController
DcMotorgetMotor ()
 
- Protected Attributes inherited from EtbController
bool hadTpsError = false
 
bool hadPpsError = false
 

Detailed Description

Definition at line 141 of file electronic_throttle_impl.h.

Constructor & Destructor Documentation

◆ EtbController2()

EtbController2::EtbController2 ( const ValueProvider3D throttle2TrimTable)
inline

Definition at line 143 of file electronic_throttle_impl.h.

145 {
146 }
const ValueProvider3D & m_throttle2Trim
static Map3D< ETB2_TRIM_SIZE, ETB2_TRIM_SIZE, int8_t, uint8_t, uint8_t > throttle2TrimTable

Member Function Documentation

◆ getThrottleTrim()

percent_t EtbController2::getThrottleTrim ( float  rpm,
percent_t  targetPosition 
) const
overridevirtual

Reimplemented from EtbController.

Definition at line 402 of file electronic_throttle.cpp.

402 {
403 return m_throttle2Trim.getValue(rpm, targetPosition);
404}
virtual float getValue(float xColumn, float yRow) const =0
Here is the call graph for this function:

Field Documentation

◆ m_throttle2Trim

const ValueProvider3D& EtbController2::m_throttle2Trim
private

Definition at line 151 of file electronic_throttle_impl.h.

Referenced by getThrottleTrim().


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