Speeduino
Loading...
Searching...
No Matches
statuses.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <stdint.h>
11#include "bit_manip.h"
12#include "atomic.h"
13#include "maths.h"
14#include "decoder_builder.h"
15
16using byte = uint8_t;
17
20{
22 None,
24 Rolling,
26 Full,
27};
28
29
37struct statuses {
38 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
40 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
41 bool clutchTrigger : 1;
42 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
44 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
45 volatile bool fpPrimed : 1;
46 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
47 volatile bool injPrimed : 1;
48 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
49 volatile bool tachoSweepEnabled : 1;
50 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
51 volatile bool tachoAlt : 1;
52
54 byte RPMdiv100;
55 long longRPM;
57 long MAP;
63 byte TPSlast;
65 volatile int rpmDOT;
66 byte VE;
67 byte VE1;
68 byte VE2;
71 int coolant;
73 int IAT;
80 byte battery10;
95 byte afrTarget;
99 volatile byte ethanolPct;
100 volatile int8_t fuelTemp;
101 unsigned long AEEndTime;
103 // Status1 fields as defined in the INI
104 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
105 volatile bool isInj1Open : 1;
106 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
107 volatile bool isInj2Open : 1;
108 // cppcheck-suppress misra-c2012-6.1
109 volatile bool isInj3Open : 1;
110 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
111 volatile bool isInj4Open : 1;
112 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
113 bool isDFCOActive : 1;
114 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
115 volatile bool isToothLog1Full : 1;
116
117 // Status2 fields as defined in the INI.
118 // TODO: resolve duplication with launchingHard
119 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
121 // TODO: resolve duplication with launchingSoft
122 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
124 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
126 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
127 bool idleOn : 1;
128
129 // Status3 fields as defined in the INI.
130 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
132 // TODO: resolve duplication with nitrous_status
133 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
134 bool nitrousActive : 1;
135 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
137 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
138 bool vssUiRefresh : 1;
139 // TODO: resolve duplication with nSquirts
140 unsigned int nSquirtsStatus: 3;
141
142 // Status4 fields as defined in the INI.
143 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
144 bool wmiTankEmpty : 1;
145 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
146 bool vvt1AngleError : 1;
147 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
148 bool vvt2AngleError : 1;
149 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
150 bool fanOn : 1;
151 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
152 bool burnPending : 1;
153 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
154 bool stagingActive : 1;
155 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
156 bool commCompat : 1;
157 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
159
160 // Status5 fields as defined in the INI.
161 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
163 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
165 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
167 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
169 // TODO: resolve duplication with clutchTrigger
170 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
172
173 // Engine status fields as defined in the INI.
174 // TODO: engine has 3 states: Off, Cranking, Running. Need to capture this better
175 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
177 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
179 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
180 bool aseIsActive : 1;
181 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
182 bool wueIsActive : 1;
183 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
184 // TODO: acceleration has 3 states: Steady, Accelerating, Decelerating. Need to capture this better
185 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
187 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
189
190 // TODO: make all pulse widths uint16_t
191 unsigned int PW1;
192 unsigned int PW2;
193 unsigned int PW3;
194 unsigned int PW4;
195 unsigned int PW5;
196 unsigned int PW6;
197 unsigned int PW7;
198 unsigned int PW8;
199 volatile byte runSecs;
200 volatile byte secl;
204 // TODO: remove this: only updated & read in logger
206 // TODO: make all RPMs uint16_t
207 unsigned int clutchEngagedRPM;
211 // TODO: resolve conflict with testActive
212 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
213 bool isTestModeActive : 1; // Is hardware test mode on?
214 bool testActive; // Not in use ? Replaced by testOutputs ?
216 byte idleLoad;
222 byte nSquirts;
226 volatile byte syncLossCounter;
228 volatile byte knockCount;
230 byte compositeTriggerUsed; // 0 means composite logger disabled, 2 means use secondary input (1st cam), 3 means use tertiary input (2nd cam), 4 means log both cams together
231 int16_t vvt1Angle; //Has to be a long for PID calcs (CL VVT control)
233 long vvt1Duty; //Has to be a long for PID calcs (CL VVT control)
238 byte gear;
244 {
245 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
246 bool rpm : 1;
247 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
248 bool coolant : 1;
249 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
250 bool boostCut : 1;
251 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
252 bool oil : 1;
253 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
254 bool afr : 1;
255
257 // cppcheck-suppress misra-c2012-8.10 ; False positive - cannot make this static
258 inline bool isActive(void) const {
259 return rpm
260 || coolant
261 || boostCut
262 || oil
263 || afr
264 ;
265 }
266
268 // cppcheck-suppress misra-c2012-8.10 ; False positive - cannot make this static
269 inline void reset(void) {
270 rpm = false;
271 boostCut = false;
272 oil = false;
273 afr = false;
274 coolant = false;
275 }
276 };
278 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
279 bool ioError : 1;
280
282 byte wmiPW;
283 int16_t vvt2Angle; //Has to be a long for PID calcs (CL VVT control)
285 long vvt2Duty; //Has to be a long for PID calcs (CL VVT control)
287
288 // SD card status fields.
289 // TODO: conditional compile on SD_LOGGING once board definition is separated from globals.h
290 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
291 bool sdCardPresent : 1;
292 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
293 unsigned int sdCardType : 1;
294 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
295 bool sdCardReady : 1;
296 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
297 bool sdCardLogging : 1;
298 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
299 bool sdCardError : 1;
300 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
301 unsigned int sdCardFS : 1;
302 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
303 bool sdCardUnused : 1;
304
305 // airConStatus fields.
306 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
308 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
310 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
312 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
314 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
316 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
318 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
319 bool airconFanOn : 1;
320
322 uint32_t revolutionTime; //The time in uS that one revolution would take at current speed (The time tooth 1 was last seen, minus the time it was seen prior to that)
323
329 {
330 // Using bytes for compactness ATM, but that limits us to 8 fuel and
331 // 8 ignition channels
336 };
338
340};
341
348static inline void setRpm(statuses &status, uint16_t rpm)
349{
350 ATOMIC()
351 {
352 status.RPM = rpm;
353 status.RPMdiv100 = div100(rpm);
354 status.longRPM = rpm;
355 }
356}
Bit twiddling macros.
uint8_t byte
Definition config_pages.h:16
A builder for decoder_t structures.
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175
static uint16_t div100(uint16_t n)
Performance optimised integer division by 100. I.e. same as n/100.
Definition maths.h:123
SchedulerCutStatus
The current status of scheduler channel cuts.
Definition statuses.h:20
static void setRpm(statuses &status, uint16_t rpm)
Set the RPM field, keeping RPMDiv100 in sync.
Definition statuses.h:348
A builder for decoder_t - will make sure all required fields are set.
Definition decoder_builder.h:10
decoder_t build(void) const
Definition decoder_builder.h:33
This structure represents a decoder configuration.
Definition decoder_t.h:89
Engine protection status fields.
Definition statuses.h:244
bool rpm
true if RPM limits have been breached, false otherwise
Definition statuses.h:246
bool isActive(void) const
Are any protections active.
Definition statuses.h:258
bool oil
true if the oil limit has been breached, false otherwise
Definition statuses.h:252
bool afr
true if the afr limit has been breached, false otherwise
Definition statuses.h:254
bool boostCut
true if the boost limit has been breached, false otherwise
Definition statuses.h:250
bool coolant
true if coolant limits have been breached, false otherwise
Definition statuses.h:248
void reset(void)
Reset all protections to off.
Definition statuses.h:269
Fuel and ignition scheduler cut state.
Definition statuses.h:329
byte fuelChannels
Which fuel channels are on (1) or off (0)
Definition statuses.h:334
SchedulerCutStatus status
Definition statuses.h:335
byte ignitionChannelsPending
Any ignition channels that are pending injections before they are resumed.
Definition statuses.h:332
byte ignitionChannels
Which ignition channels are on (1) or off (0)
Definition statuses.h:333
The status struct with current values for all 'live' variables.
Definition statuses.h:37
volatile bool isInj4Open
Injector 4 status: true == open, false == closed.
Definition statuses.h:111
bool airconFanOn
Indicates whether the A/C fan is running.
Definition statuses.h:319
byte dwellCorrection
Definition statuses.h:79
bool wueIsActive
Is Warm Up Enrichment (WUE) active (true) or not (false)
Definition statuses.h:182
uint16_t baroADC
Definition statuses.h:56
bool airconRequested
Indicates whether the A/C button is pressed.
Definition statuses.h:307
volatile byte syncLossCounter
Definition statuses.h:226
byte ASEValue
Definition statuses.h:235
int16_t vvt2Angle
Definition statuses.h:283
uint16_t canin[16]
16bit raw value of selected canin data for channels 0-15
Definition statuses.h:217
byte oilPressure
Definition statuses.h:240
uint8_t current_caninchannel
Definition statuses.h:218
bool launchingSoft
Definition statuses.h:202
unsigned int PW3
In uS.
Definition statuses.h:193
byte launchCorrection
Definition statuses.h:91
scheduler_cut_t schedulerCutState
Definition statuses.h:337
unsigned int PW6
In uS.
Definition statuses.h:196
bool idleUpActive
Definition statuses.h:97
bool wmiTankEmpty
Is the Water Methanol Injection tank empty (true) or not (false)
Definition statuses.h:144
long vvt1Duty
Definition statuses.h:233
unsigned int sdCardFS
File system type 0=no FAT16, 1=FAT32.
Definition statuses.h:301
uint32_t revolutionTime
Definition statuses.h:322
bool CTPSActive
Definition statuses.h:98
unsigned int PW8
In uS.
Definition statuses.h:198
byte CLIdleTarget
Definition statuses.h:96
byte vvt2TargetAngle
Definition statuses.h:284
byte TPSlast
Definition statuses.h:63
bool clutchTrigger
Definition statuses.h:41
bool testActive
Definition statuses.h:214
bool idleUpOutputActive
Definition statuses.h:237
bool engineIsRunning
Is engine running (true) or not (false)
Definition statuses.h:176
bool secondSparkTableActive
Secondary spark table is use (true) or not (false)
Definition statuses.h:164
bool vvt2AngleError
VVT2 cam angle within limits (false) or not (true)
Definition statuses.h:148
unsigned long AEEndTime
Definition statuses.h:101
byte baroCorrection
Definition statuses.h:90
bool flatShiftingHard
Definition statuses.h:208
int16_t vvt1Angle
Definition statuses.h:231
bool vvt1AngleError
VVT1 cam angle within limits (false) or not (true)
Definition statuses.h:146
unsigned int PW4
In uS.
Definition statuses.h:194
byte VE2
Definition statuses.h:68
byte flexCorrection
Definition statuses.h:92
bool clutchTriggerActive
Is the clutch trigger active (true) or not (false)
Definition statuses.h:171
volatile uint16_t loopsPerSecond
Definition statuses.h:201
bool toothLogEnabled
Definition statuses.h:229
bool burnPending
Is an EEPROM burn pending (true) or not (false)
Definition statuses.h:152
byte VE1
Definition statuses.h:67
bool airconTpsLockout
Indicates the A/C is locked out due to high TPS, or the post-high-TPS "stand-down" lockout period.
Definition statuses.h:313
bool sdCardLogging
true if logging active, false if not
Definition statuses.h:297
int IAT
Definition statuses.h:73
int16_t mapDOT
Definition statuses.h:64
uint16_t ignLoad
Definition statuses.h:224
byte wueCorrection
Definition statuses.h:87
byte batCorrection
Definition statuses.h:88
int8_t advance
Definition statuses.h:81
unsigned int PW1
In uS.
Definition statuses.h:191
uint16_t dwell
dwell (coil primary winding/circuit on) time (in ms * 10 ? See correctionsDwell)
Definition statuses.h:77
uint8_t tpsADC
Definition statuses.h:61
volatile byte knockCount
Definition statuses.h:228
bool knockRetardActive
Is knock retardation active (true) or not (false)
Definition statuses.h:166
bool knockPulseDetected
Definition statuses.h:168
byte nSquirts
Number of injector squirts per cycle (per injector)
Definition statuses.h:222
int8_t advance2
Definition statuses.h:83
bool ioError
true if there is an analog pin conflict
Definition statuses.h:279
bool sdCardUnused
true if unused, false if not
Definition statuses.h:303
bool engineIsCranking
Is engine cranking (true) or not (false)
Definition statuses.h:178
uint16_t vss
Definition statuses.h:236
bool fanOn
Engine fan status (true == on, false == off)
Definition statuses.h:150
byte knockRetard
Definition statuses.h:227
uint16_t boostTarget
Definition statuses.h:210
uint16_t EMAP
EMAP ... (See config6::useEMAP for EMAP enablement)
Definition statuses.h:58
bool fuelPumpOn
Definition statuses.h:225
bool airconTurningOn
Indicates the A/C request is on (i.e. A/C button pressed), the lockouts are off, however the start de...
Definition statuses.h:315
bool sdCardReady
true if ready, false if not
Definition statuses.h:295
byte gear
Definition statuses.h:238
volatile bool injPrimed
Tracks whether or not the injector priming has been completed yet.
Definition statuses.h:47
uint8_t maxIgnOutputs
Definition statuses.h:324
bool airconRpmLockout
Indicates the A/C is locked out due to the RPM being too high/low, or the post-high/post-low-RPM "sta...
Definition statuses.h:311
volatile byte secl
Definition statuses.h:200
bool secondFuelTableActive
Secondary fuel table is use (true) or not (false)
Definition statuses.h:136
bool isTestModeActive
Definition statuses.h:213
bool nitrousActive
Nitrous on (true) or off (false)
Definition statuses.h:134
uint16_t fuelLoad
Definition statuses.h:223
int coolant
Definition statuses.h:71
byte VE
Definition statuses.h:66
bool isDeceleratingTPS
Are we decelerating (true) or not (false), based on TPS.
Definition statuses.h:188
volatile uint16_t actualDwell
actual dwell time if new ignition mode is used (in uS)
Definition statuses.h:78
byte fuelPressure
Definition statuses.h:239
unsigned int clutchEngagedRPM
Definition statuses.h:207
volatile uint32_t startRevolutions
Definition statuses.h:209
unsigned int PW5
In uS.
Definition statuses.h:195
volatile bool tachoAlt
Definition statuses.h:51
uint16_t boostDuty
Boost Duty percentage value * 100 to give 2 points of precision.
Definition statuses.h:215
volatile bool isToothLog1Full
Boost Cut status: true == active, false == inactive.
Definition statuses.h:115
bool previousClutchTrigger
Definition statuses.h:43
byte battery10
Definition statuses.h:80
bool commCompat
Definition statuses.h:156
volatile byte runSecs
Definition statuses.h:199
uint16_t iatADC
Definition statuses.h:74
int8_t advance1
Definition statuses.h:82
uint16_t RPM
RPM - Current Revs per minute.
Definition statuses.h:53
volatile bool isInj3Open
Injector 3 status: true == open, false == closed.
Definition statuses.h:109
bool flatShiftSoftCut
Is the flat shift soft cut active (true) or not (false)
Definition statuses.h:162
bool softLaunchActive
Soft Launch status: true == on, false == off.
Definition statuses.h:123
long longRPM
RPM as long int (gets assigned to / maintained in statuses.RPM as well)
Definition statuses.h:55
bool stagingActive
Is fuel injection staging active (true) or not (false)
Definition statuses.h:154
bool hardLaunchActive
Hard Launch status: true == on, false == off.
Definition statuses.h:120
byte wmiPW
Definition statuses.h:282
bool aseIsActive
Is After Start Enrichment (ASE) active (true) or not (false)
Definition statuses.h:180
bool vssUiRefresh
Flag to indicate that the VSS value needs to be refreshed in the UI.
Definition statuses.h:138
volatile int8_t fuelTemp
Definition statuses.h:100
byte vvt1TargetAngle
Definition statuses.h:232
byte RPMdiv100
RPM value scaled (divided by 100) to fit a byte (0-255, e.g. 12000 => 120)
Definition statuses.h:54
bool sdCardPresent
true if a card is present, false if not
Definition statuses.h:291
uint16_t corrections
Definition statuses.h:84
long vvt2Duty
Definition statuses.h:285
byte fanDuty
Definition statuses.h:281
uint8_t TPS
Definition statuses.h:60
byte outputsStatus
Definition statuses.h:286
decoder_t decoder
The current decoder.
Definition statuses.h:339
bool idleOn
Is the idle code active : true == active, false == inactive.
Definition statuses.h:127
byte afrTarget
Definition statuses.h:95
bool launchingHard
Definition statuses.h:203
volatile int rpmDOT
Definition statuses.h:65
byte fuelTempCorrection
Definition statuses.h:93
bool softLimitActive
Soft limit status: true == on, false == off.
Definition statuses.h:125
volatile bool isInj1Open
Injector 1 status: true == open, false == closed.
Definition statuses.h:105
bool airconCltLockout
Indicates the A/C is locked out either due to high coolant temp.
Definition statuses.h:317
byte nitrous_status
Definition statuses.h:221
unsigned int PW2
In uS.
Definition statuses.h:192
bool isAcceleratingTPS
Are we accelerating (true) or not (false), based on TPS.
Definition statuses.h:186
uint8_t systemTemp
Definition statuses.h:321
volatile bool fpPrimed
Tracks whether or not the fuel pump priming has been completed yet.
Definition statuses.h:45
int16_t tpsDOT
Definition statuses.h:62
uint8_t O2_2
Definition statuses.h:70
uint16_t freeRAM
Definition statuses.h:205
bool sdCardError
true if error, false if not
Definition statuses.h:299
byte compositeTriggerUsed
Definition statuses.h:230
byte egoCorrection
Definition statuses.h:86
int16_t flexBoostCorrection
Definition statuses.h:220
bool initialisationComplete
Tracks whether the setup() function has run completely.
Definition statuses.h:39
int8_t flexIgnCorrection
Definition statuses.h:94
byte idleLoad
Either the current steps or current duty cycle for the idle control.
Definition statuses.h:216
uint16_t O2_2ADC
Definition statuses.h:76
bool airconCompressorOn
Indicates whether the A/C compressor is running.
Definition statuses.h:309
byte iatCorrection
Definition statuses.h:89
uint8_t O2
Definition statuses.h:69
bool allowLegacyComms
Definition statuses.h:158
uint16_t injAngle
Definition statuses.h:234
volatile bool isInj2Open
Injector 2 status: true == open, false == closed.
Definition statuses.h:107
bool resetPreventActive
Reset prevent on (true) or off (false)
Definition statuses.h:131
long MAP
Manifold absolute pressure. Has to be a long for PID calcs (Boost control)
Definition statuses.h:57
volatile bool tachoSweepEnabled
Definition statuses.h:49
uint16_t crankRPM
Definition statuses.h:219
uint8_t baro
Barometric pressure is simply the initial MAP reading, taken before the engine is running....
Definition statuses.h:59
engine_protect_flags_t engineProtect
Definition statuses.h:277
volatile byte ethanolPct
Definition statuses.h:99
unsigned int PW7
In uS.
Definition statuses.h:197
uint16_t AEamount
Definition statuses.h:85
uint8_t maxInjOutputs
Definition statuses.h:325
uint16_t cltADC
Definition statuses.h:72
uint16_t O2ADC
Definition statuses.h:75
bool isDFCOActive
Deceleration Fuel Cut Off status: true == active, false == inactive.
Definition statuses.h:113
unsigned int sdCardType
0==SD, 1==SDHC
Definition statuses.h:293
unsigned int nSquirtsStatus
Definition statuses.h:140