rusefi-1/firmware/controllers/actuators/idle_state.txt

36 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-10-16 20:40:02 -07:00
struct_no_prefix idle_state_s
custom idle_state_e 4 bits, S32, @OFFSET@, [0:2], "not important"
idle_state_e idleState
custom percent_t 4 bits, F32, @OFFSET@, [0:2], "not important"
percent_t currentIdlePosition;that's current position with CLT and IAT corrections
percent_t baseIdlePosition;current position without adjustments (iacByTpsTaper, afterCrankingIACtaperDuration)
percent_t iacByTpsTaper;iacByTpsTaper portion of idle
2021-10-16 20:40:02 -07:00
int throttlePedalUpState;true in IDLE throttle pedal state, false if driver is touching the pedal\ntodo: better name for this field?
2021-10-16 21:27:12 -07:00
bit mightResetPid;The idea of 'mightResetPid' is to reset PID only once - each time when TPS > idlePidDeactivationTpsThreshold.\nThe throttle pedal can be pressed for a long time, making the PID data obsolete (thus the reset is required).\nWe set 'mightResetPid' to true only if PID was actually used (i.e. idlePid.getOutput() was called) to save some CPU resources.\nSee automaticIdleController().
bit shouldResetPid;
bit wasResetPid;This is needed to slowly turn on the PID back after it was reset.
bit mustResetPid;This is used when the PID configuration is changed, to guarantee the reset
bit isCoasting
bit useIacTableForCoasting
bit notIdling
bit needReset
bit isInDeadZone
bit isBlipping
bit useClosedLoop
bit badTps
bit looksLikeRunning
bit looksLikeCoasting
bit looksLikeCrankToIdle
bit useInstantRpmForIdle
bit isVerboseIAC
int targetRpmByClt
int targetRpmAcBump
2021-10-16 21:27:12 -07:00
2021-10-16 20:40:02 -07:00
! end of idle_state_s structure definition
end_struct