rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
idle_state_generated.h
Go to the documentation of this file.
1// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/idle_state.txt
2// by class com.rusefi.output.CHeaderConsumer
3// begin
4#pragma once
5#include "rusefi_types.h"
6// start of idle_state_s
8 /**
9 * offset 0
10 */
12 /**
13 * "idle: base value
14 * current position without adjustments (iacByTpsTaper, afterCrankingIACtaperDuration)"
15 * offset 4
16 */
18 /**
19 * idle: iacByTpsTaper portion
20 * offset 8
21 */
23 /**
24 * idle: mightResetPid
25 * The idea of 'mightResetPid' is to reset PID only once - each time when TPS > idlePidDeactivationTpsThreshold.
26 * The throttle pedal can be pressed for a long time, making the PID data obsolete (thus the reset is required).
27 * We set 'mightResetPid' to true only if PID was actually used (i.e. idlePid.getOutput() was called) to save some CPU resources.
28 * See automaticIdleController().
29 offset 12 bit 0 */
30 bool mightResetPid : 1 {};
31 /**
32 * Idle: shouldResetPid
33 * This is used when the PID configuration is changed, to guarantee the reset
34 offset 12 bit 1 */
35 bool shouldResetPid : 1 {};
36 /**
37 * Idle: wasResetPid
38 * This is needed to slowly turn on the PID back after it was reset.
39 offset 12 bit 2 */
40 bool wasResetPid : 1 {};
41 /**
42 * Idle: cranking
43 offset 12 bit 3 */
44 bool isCranking : 1 {};
45 /**
46 offset 12 bit 4 */
48 /**
49 * Idle: reset
50 offset 12 bit 5 */
51 bool needReset : 1 {};
52 /**
53 * Idle: dead zone
54 offset 12 bit 6 */
55 bool isInDeadZone : 1 {};
56 /**
57 offset 12 bit 7 */
58 bool isBlipping : 1 {};
59 /**
60 offset 12 bit 8 */
61 bool badTps : 1 {};
62 /**
63 offset 12 bit 9 */
64 bool looksLikeRunning : 1 {};
65 /**
66 offset 12 bit 10 */
67 bool looksLikeCoasting : 1 {};
68 /**
69 offset 12 bit 11 */
71 /**
72 * Idle: coasting
73 offset 12 bit 12 */
74 bool isIdleCoasting : 1 {};
75 /**
76 * Idle: Closed loop active
77 offset 12 bit 13 */
78 bool isIdleClosedLoop : 1 {};
79 /**
80 * Idle: idling
81 offset 12 bit 14 */
82 bool isIdling : 1 {};
83 /**
84 offset 12 bit 15 */
85 bool unusedBit_18_15 : 1 {};
86 /**
87 offset 12 bit 16 */
88 bool unusedBit_18_16 : 1 {};
89 /**
90 offset 12 bit 17 */
91 bool unusedBit_18_17 : 1 {};
92 /**
93 offset 12 bit 18 */
94 bool unusedBit_18_18 : 1 {};
95 /**
96 offset 12 bit 19 */
97 bool unusedBit_18_19 : 1 {};
98 /**
99 offset 12 bit 20 */
100 bool unusedBit_18_20 : 1 {};
101 /**
102 offset 12 bit 21 */
103 bool unusedBit_18_21 : 1 {};
104 /**
105 offset 12 bit 22 */
106 bool unusedBit_18_22 : 1 {};
107 /**
108 offset 12 bit 23 */
109 bool unusedBit_18_23 : 1 {};
110 /**
111 offset 12 bit 24 */
112 bool unusedBit_18_24 : 1 {};
113 /**
114 offset 12 bit 25 */
115 bool unusedBit_18_25 : 1 {};
116 /**
117 offset 12 bit 26 */
118 bool unusedBit_18_26 : 1 {};
119 /**
120 offset 12 bit 27 */
121 bool unusedBit_18_27 : 1 {};
122 /**
123 offset 12 bit 28 */
124 bool unusedBit_18_28 : 1 {};
125 /**
126 offset 12 bit 29 */
127 bool unusedBit_18_29 : 1 {};
128 /**
129 offset 12 bit 30 */
130 bool unusedBit_18_30 : 1 {};
131 /**
132 offset 12 bit 31 */
133 bool unusedBit_18_31 : 1 {};
134 /**
135 * Idle: Target RPM
136 * offset 16
137 */
138 uint16_t idleTarget = (uint16_t)0;
139 /**
140 * Idle: Entry threshold
141 * offset 18
142 */
143 uint16_t idleEntryRpm = (uint16_t)0;
144 /**
145 * Idle: Exit threshold
146 * offset 20
147 */
148 uint16_t idleExitRpm = (uint16_t)0;
149 /**
150 * need 4 byte alignment
151 * units: units
152 * offset 22
153 */
154 uint8_t alignmentFill_at_22[2] = {};
155 /**
156 * Idle: Target RPM base
157 * offset 24
158 */
159 int targetRpmByClt = (int)0;
160 /**
161 * Idle: Target A/C RPM
162 * offset 28
163 */
164 int targetRpmAc = (int)0;
165 /**
166 * idle: iacByRpmTaper portion
167 * offset 32
168 */
170 /**
171 * idle: Lua Adder
172 * offset 36
173 */
175 /**
176 * offset 40
177 */
178 int m_lastTargetRpm = (int)0;
179 /**
180 * Closed loop
181 * offset 44
182 */
184 /**
185 * @@GAUGE_NAME_IAC@@
186 * units: %
187 * offset 48
188 */
190 /**
191 * Target airmass
192 * units: mg
193 * offset 52
194 */
195 uint16_t idleTargetAirmass = (uint16_t)0;
196 /**
197 * Target airflow
198 * units: kg/h
199 * offset 54
200 */
201 scaled_channel<uint16_t, 100, 1> idleTargetFlow = (uint16_t)0;
202};
203static_assert(sizeof(idle_state_s) == 56);
204
205// end
206// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/idle_state.txt
idle_state_e
float percent_t
percent_t currentIdlePosition
uint8_t alignmentFill_at_22[2]
percent_t baseIdlePosition
scaled_channel< uint16_t, 100, 1 > idleTargetFlow
idle_state_e idleState