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
2022-06-19 06:52:23 -07:00
custom percent_t 4 scalar, F32, @OFFSET@, "", 1, 0, 0, 100, 2
2022-07-07 20:48:17 -07:00
percent_t currentIdlePosition;"idle: current position\nthat's current position with CLT and IAT corrections"
percent_t baseIdlePosition;"idle: base value\ncurrent position without adjustments (iacByTpsTaper, afterCrankingIACtaperDuration)"
2022-07-07 22:05:48 -07:00
percent_t iacByTpsTaper;idle: 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().
2022-07-07 22:05:48 -07:00
bit shouldResetPid;idle: shouldResetPid
bit wasResetPid;idle: wasResetPid\nThis is needed to slowly turn on the PID back after it was reset.
bit mustResetPid;idle: mustResetPid\nThis is used when the PID configuration is changed, to guarantee the reset
2022-08-25 17:26:12 -07:00
bit isCranking;idle: cranking
2022-10-30 14:41:18 -07:00
bit isIacTableForCoasting
2022-01-10 17:51:49 -08:00
bit notIdling
2022-07-07 22:05:48 -07:00
bit needReset;idle: reset
bit isInDeadZone;idle: dead zone
2022-01-10 17:51:49 -08:00
bit isBlipping
bit useClosedLoop
2022-01-10 18:55:52 -08:00
bit badTps
bit looksLikeRunning
bit looksLikeCoasting
bit looksLikeCrankToIdle
2022-01-11 11:10:30 -08:00
bit isVerboseIAC
2022-08-25 17:26:12 -07:00
bit isIdleCoasting;idle: coasting
2022-01-10 18:55:52 -08:00
2022-07-07 22:05:48 -07:00
int targetRpmByClt;idle: target by CLT
int targetRpmAcBump;idle: A/C bump
2021-10-16 21:27:12 -07:00
2022-08-18 20:03:33 -07:00
percent_t iacByRpmTaper;idle: iacByRpmTaper portion of idle
2022-08-09 22:39:11 -07:00
2022-08-20 21:18:19 -07:00
percent_t luaAdd;idle: Lua Adder
2021-10-16 20:40:02 -07:00
! end of idle_state_s structure definition
end_struct