rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
electronic_throttle_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/electronic_throttle.txt
2// by class com.rusefi.output.CHeaderConsumer
3// begin
4#pragma once
5#include "rusefi_types.h"
6// start of electronic_throttle_s
8 /**
9 * ETB: target for current pedal
10 * units: %
11 * offset 0
12 */
14 /**
15 * ETB: board adjustment
16 * units: %
17 * offset 4
18 */
20 /**
21 * "ETB: target with idle"
22 * units: %
23 * offset 8
24 */
26 /**
27 * "ETB: luaAdjustment"
28 * units: %
29 * offset 12
30 */
31 float luaAdjustment = (float)0;
32 /**
33 * "ETB: trim"
34 * units: %
35 * offset 16
36 */
37 float trim = (float)0;
38 /**
39 * ETB: target with adjustments
40 * units: %
41 * offset 20
42 */
43 scaled_channel<int16_t, 100, 1> adjustedEtbTarget = (int16_t)0;
44 /**
45 * ETB: final target
46 * units: %
47 * offset 22
48 */
49 scaled_channel<int16_t, 100, 1> m_adjustedTarget = (int16_t)0;
50 /**
51 * "DC: wastegatePosition"
52 * units: %
53 * offset 24
54 */
56 /**
57 * "EBT: last PID dT"
58 * units: mS
59 * offset 28
60 */
61 float m_lastPidDtMs = (float)0;
62 /**
63 * offset 32
64 */
66 /**
67 * Integral error
68 * offset 36
69 */
70 float integralError = (float)0;
71 /**
72 offset 40 bit 0 */
73 bool etbRevLimitActive : 1 {};
74 /**
75 offset 40 bit 1 */
76 bool jamDetected : 1 {};
77 /**
78 offset 40 bit 2 */
79 bool validPlantPosition : 1 {};
80 /**
81 offset 40 bit 3 */
82 bool unusedBit_14_3 : 1 {};
83 /**
84 offset 40 bit 4 */
85 bool unusedBit_14_4 : 1 {};
86 /**
87 offset 40 bit 5 */
88 bool unusedBit_14_5 : 1 {};
89 /**
90 offset 40 bit 6 */
91 bool unusedBit_14_6 : 1 {};
92 /**
93 offset 40 bit 7 */
94 bool unusedBit_14_7 : 1 {};
95 /**
96 offset 40 bit 8 */
97 bool unusedBit_14_8 : 1 {};
98 /**
99 offset 40 bit 9 */
100 bool unusedBit_14_9 : 1 {};
101 /**
102 offset 40 bit 10 */
103 bool unusedBit_14_10 : 1 {};
104 /**
105 offset 40 bit 11 */
106 bool unusedBit_14_11 : 1 {};
107 /**
108 offset 40 bit 12 */
109 bool unusedBit_14_12 : 1 {};
110 /**
111 offset 40 bit 13 */
112 bool unusedBit_14_13 : 1 {};
113 /**
114 offset 40 bit 14 */
115 bool unusedBit_14_14 : 1 {};
116 /**
117 offset 40 bit 15 */
118 bool unusedBit_14_15 : 1 {};
119 /**
120 offset 40 bit 16 */
121 bool unusedBit_14_16 : 1 {};
122 /**
123 offset 40 bit 17 */
124 bool unusedBit_14_17 : 1 {};
125 /**
126 offset 40 bit 18 */
127 bool unusedBit_14_18 : 1 {};
128 /**
129 offset 40 bit 19 */
130 bool unusedBit_14_19 : 1 {};
131 /**
132 offset 40 bit 20 */
133 bool unusedBit_14_20 : 1 {};
134 /**
135 offset 40 bit 21 */
136 bool unusedBit_14_21 : 1 {};
137 /**
138 offset 40 bit 22 */
139 bool unusedBit_14_22 : 1 {};
140 /**
141 offset 40 bit 23 */
142 bool unusedBit_14_23 : 1 {};
143 /**
144 offset 40 bit 24 */
145 bool unusedBit_14_24 : 1 {};
146 /**
147 offset 40 bit 25 */
148 bool unusedBit_14_25 : 1 {};
149 /**
150 offset 40 bit 26 */
151 bool unusedBit_14_26 : 1 {};
152 /**
153 offset 40 bit 27 */
154 bool unusedBit_14_27 : 1 {};
155 /**
156 offset 40 bit 28 */
157 bool unusedBit_14_28 : 1 {};
158 /**
159 offset 40 bit 29 */
160 bool unusedBit_14_29 : 1 {};
161 /**
162 offset 40 bit 30 */
163 bool unusedBit_14_30 : 1 {};
164 /**
165 offset 40 bit 31 */
166 bool unusedBit_14_31 : 1 {};
167 /**
168 * "ETB TPS error counter"
169 * units: count
170 * offset 44
171 */
172 uint16_t etbTpsErrorCounter = (uint16_t)0;
173 /**
174 * "ETB pedal error counter"
175 * units: count
176 * offset 46
177 */
178 uint16_t etbPpsErrorCounter = (uint16_t)0;
179 /**
180 * offset 48
181 */
182 int8_t etbErrorCode = (int8_t)0;
183 /**
184 * offset 49
185 */
186 int8_t etbErrorCodeBlinker = (int8_t)0;
187 /**
188 * ETB traction control
189 * units: %
190 * offset 50
191 */
192 int8_t tcEtbDrop = (int8_t)0;
193 /**
194 * need 4 byte alignment
195 * units: units
196 * offset 51
197 */
198 uint8_t alignmentFill_at_51[1] = {};
199 /**
200 * ETB jam timer
201 * units: sec
202 * offset 52
203 */
204 scaled_channel<uint16_t, 100, 1> jamTimer = (uint16_t)0;
205 /**
206 * offset 54
207 */
208 uint8_t state = (uint8_t)0;
209 /**
210 * need 4 byte alignment
211 * units: units
212 * offset 55
213 */
214 uint8_t alignmentFill_at_55[1] = {};
215};
216static_assert(sizeof(electronic_throttle_s) == 56);
217
218// end
219// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) controllers/actuators/electronic_throttle.txt
float percent_t
scaled_channel< int16_t, 100, 1 > adjustedEtbTarget
scaled_channel< uint16_t, 100, 1 > jamTimer
scaled_channel< int16_t, 100, 1 > m_adjustedTarget