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
2023-09-28 06:42:45 -07:00
percent_t currentIdlePosition;@@GAUGE_NAME_IAC@@;"%", 1, 0, 0, 0, 1
2022-07-07 20:48:17 -07:00
percent_t baseIdlePosition;"idle: base value\ncurrent position without adjustments (iacByTpsTaper, afterCrankingIACtaperDuration)"
2023-09-28 06:42:45 -07:00
percent_t idleClosedLoop;Idle: Closed loop
2022-11-01 13:51:51 -07:00
percent_t iacByTpsTaper;idle: iacByTpsTaper portion
int throttlePedalUpState;idle: throttlePedalUpState\ntrue 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
2023-09-26 18:10:47 -07:00
bit mightResetPid;idle: mightResetPid\nThe 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().
2021-10-16 21:27:12 -07:00
2023-09-25 01:34:43 -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
bit isCranking;Idle: cranking
bit isIacTableForCoasting
bit notIdling
bit needReset;Idle: reset
bit isInDeadZone;Idle: dead zone
bit isBlipping
2023-09-26 18:10:47 -07:00
bit useClosedLoop
bit badTps
2023-09-25 01:34:43 -07:00
bit looksLikeRunning
bit looksLikeCoasting
bit looksLikeCrankToIdle
bit isIdleCoasting;Idle: coasting
2023-09-26 18:10:47 -07:00
bit isIdleClosedLoop;Idle: Closed loop active
2022-01-10 18:55:52 -08:00
2023-09-28 06:42:45 -07:00
int idleTarget;Idle: Target RPM
int targetRpmByClt;Idle: Target RPM base
2023-10-22 12:26:44 -07:00
int targetRpmAc;Idle: Target A/C RPM
2021-10-16 21:27:12 -07:00
2023-09-28 06:42:45 -07:00
percent_t iacByRpmTaper;idle: iacByRpmTaper portion
2022-08-09 22:39:11 -07:00
2023-09-28 06:42:45 -07:00
percent_t luaAdd;idle: Lua Adder
2022-08-20 21:18:19 -07:00
2021-10-16 20:40:02 -07:00
! end of idle_state_s structure definition
end_struct