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 offset 12 bit 1 */
34 bool shouldResetPid : 1 {};
35 /**
36 * Idle: wasResetPid
37 * This is needed to slowly turn on the PID back after it was reset.
38 offset 12 bit 2 */
39 bool wasResetPid : 1 {};
40 /**
41 * Idle: mustResetPid
42 * This is used when the PID configuration is changed, to guarantee the reset
43 offset 12 bit 3 */
44 bool mustResetPid : 1 {};
45 /**
46 * Idle: cranking
47 offset 12 bit 4 */
48 bool isCranking : 1 {};
49 /**
50 offset 12 bit 5 */
52 /**
53 * Idle: reset
54 offset 12 bit 6 */
55 bool needReset : 1 {};
56 /**
57 * Idle: dead zone
58 offset 12 bit 7 */
59 bool isInDeadZone : 1 {};
60 /**
61 offset 12 bit 8 */
62 bool isBlipping : 1 {};
63 /**
64 offset 12 bit 9 */
65 bool badTps : 1 {};
66 /**
67 offset 12 bit 10 */
68 bool looksLikeRunning : 1 {};
69 /**
70 offset 12 bit 11 */
71 bool looksLikeCoasting : 1 {};
72 /**
73 offset 12 bit 12 */
75 /**
76 * Idle: coasting
77 offset 12 bit 13 */
78 bool isIdleCoasting : 1 {};
79 /**
80 * Idle: Closed loop active
81 offset 12 bit 14 */
82 bool isIdleClosedLoop : 1 {};
83 /**
84 * Idle: idling
85 offset 12 bit 15 */
86 bool isIdling : 1 {};
87 /**
88 offset 12 bit 16 */
89 bool unusedBit_19_16 : 1 {};
90 /**
91 offset 12 bit 17 */
92 bool unusedBit_19_17 : 1 {};
93 /**
94 offset 12 bit 18 */
95 bool unusedBit_19_18 : 1 {};
96 /**
97 offset 12 bit 19 */
98 bool unusedBit_19_19 : 1 {};
99 /**
100 offset 12 bit 20 */
101 bool unusedBit_19_20 : 1 {};
102 /**
103 offset 12 bit 21 */
104 bool unusedBit_19_21 : 1 {};
105 /**
106 offset 12 bit 22 */
107 bool unusedBit_19_22 : 1 {};
108 /**
109 offset 12 bit 23 */
110 bool unusedBit_19_23 : 1 {};
111 /**
112 offset 12 bit 24 */
113 bool unusedBit_19_24 : 1 {};
114 /**
115 offset 12 bit 25 */
116 bool unusedBit_19_25 : 1 {};
117 /**
118 offset 12 bit 26 */
119 bool unusedBit_19_26 : 1 {};
120 /**
121 offset 12 bit 27 */
122 bool unusedBit_19_27 : 1 {};
123 /**
124 offset 12 bit 28 */
125 bool unusedBit_19_28 : 1 {};
126 /**
127 offset 12 bit 29 */
128 bool unusedBit_19_29 : 1 {};
129 /**
130 offset 12 bit 30 */
131 bool unusedBit_19_30 : 1 {};
132 /**
133 offset 12 bit 31 */
134 bool unusedBit_19_31 : 1 {};
135 /**
136 * Idle: Target RPM
137 * offset 16
138 */
139 uint16_t idleTarget = (uint16_t)0;
140 /**
141 * Idle: Entry threshold
142 * offset 18
143 */
144 uint16_t idleEntryRpm = (uint16_t)0;
145 /**
146 * Idle: Exit threshold
147 * offset 20
148 */
149 uint16_t idleExitRpm = (uint16_t)0;
150 /**
151 * need 4 byte alignment
152 * units: units
153 * offset 22
154 */
155 uint8_t alignmentFill_at_22[2] = {};
156 /**
157 * Idle: Target RPM base
158 * offset 24
159 */
160 int targetRpmByClt = (int)0;
161 /**
162 * Idle: Target A/C RPM
163 * offset 28
164 */
165 int targetRpmAc = (int)0;
166 /**
167 * idle: iacByRpmTaper portion
168 * offset 32
169 */
171 /**
172 * idle: Lua Adder
173 * offset 36
174 */
176 /**
177 * offset 40
178 */
179 int m_lastTargetRpm = (int)0;
180 /**
181 * Closed loop
182 * offset 44
183 */
185 /**
186 * @@GAUGE_NAME_IAC@@
187 * units: %
188 * offset 48
189 */
191 /**
192 * Target airmass
193 * units: mg
194 * offset 52
195 */
196 uint16_t idleTargetAirmass = (uint16_t)0;
197 /**
198 * Target airflow
199 * units: kg/h
200 * offset 54
201 */
202 scaled_channel<uint16_t, 100, 1> idleTargetFlow = (uint16_t)0;
203};
204static_assert(sizeof(idle_state_s) == 56);
205
206// end
207// 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