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