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
14using byte = uint8_t;
15
23struct statuses {
24 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
25 volatile bool hasSync : 1;
27 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
29 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
30 bool clutchTrigger : 1;
31 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
33 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
34 volatile bool fpPrimed : 1;
35 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
36 volatile bool injPrimed : 1;
37 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
38 volatile bool tachoSweepEnabled : 1;
39 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
40 volatile bool tachoAlt : 1;
41
43 byte RPMdiv100;
44 long longRPM;
46 long MAP;
52 byte TPSlast;
54 volatile int rpmDOT;
55 byte VE;
56 byte VE1;
57 byte VE2;
60 int coolant;
62 int IAT;
69 byte battery10;
84 byte afrTarget;
88 volatile byte ethanolPct;
89 volatile int8_t fuelTemp;
90 unsigned long AEEndTime;
92 // Status1 fields as defined in the INI
93 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
94 volatile bool isInj1Open : 1;
95 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
96 volatile bool isInj2Open : 1;
97 // cppcheck-suppress misra-c2012-6.1
98 volatile bool isInj3Open : 1;
99 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
100 volatile bool isInj4Open : 1;
101 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
102 bool isDFCOActive : 1;
103 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
104 volatile bool isToothLog1Full : 1;
105
106 // Status2 fields as defined in the INI.
107 // TODO: resolve duplication with launchingHard
108 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
110 // TODO: resolve duplication with launchingSoft
111 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
113 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
115 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
117 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
118 bool idleOn : 1;
119 // TODO: resolve duplication with hasSync
120 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
121 volatile bool hasFullSync : 1; // Whether engine has sync (true) or not (false)
122
123 // Status3 fields as defined in the INI.
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 // TODO: resolve duplication with nitrous_status
127 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
128 bool nitrousActive : 1;
129 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
131 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
132 bool vssUiRefresh : 1;
133 // TODO: resolve duplication with hasSync & hasFullSync
134 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
135 volatile bool halfSync : 1;
136 // TODO: resolve duplication with nSquirts
137 unsigned int nSquirtsStatus: 3;
138
139 // Status4 fields as defined in the INI.
140 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
141 bool wmiTankEmpty : 1;
142 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
143 bool vvt1AngleError : 1;
144 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
145 bool vvt2AngleError : 1;
146 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
147 bool fanOn : 1;
148 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
149 bool burnPending : 1;
150 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
151 bool stagingActive : 1;
152 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
153 bool commCompat : 1;
154 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
156
157 // Status5 fields as defined in the INI.
158 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
160 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
162 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
164 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
166 // TODO: resolve duplication with clutchTrigger
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
170 // Engine status fields as defined in the INI.
171 // TODO: engine has 3 states: Off, Cranking, Running. Need to capture this better
172 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
174 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
176 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
177 bool aseIsActive : 1;
178 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
179 bool wueIsActive : 1;
180 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
181 // TODO: acceleration has 3 states: Steady, Accelerating, Decelerating. Need to capture this better
182 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
184 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
186
187 // TODO: make all pulse widths uint16_t
188 unsigned int PW1;
189 unsigned int PW2;
190 unsigned int PW3;
191 unsigned int PW4;
192 unsigned int PW5;
193 unsigned int PW6;
194 unsigned int PW7;
195 unsigned int PW8;
196 volatile byte runSecs;
197 volatile byte secl;
201 // TODO: remove this: only updated & read in logger
203 // TODO: make all RPMs uint16_t
204 unsigned int clutchEngagedRPM;
208 // TODO: resolve conflict with testActive
209 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
210 bool isTestModeActive : 1; // Is hardware test mode on?
211 bool testActive; // Not in use ? Replaced by testOutputs ?
213 byte idleLoad;
219 byte nSquirts;
223 volatile byte syncLossCounter;
225 volatile byte knockCount;
227 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
228 int16_t vvt1Angle; //Has to be a long for PID calcs (CL VVT control)
230 long vvt1Duty; //Has to be a long for PID calcs (CL VVT control)
235 byte gear;
239 // engineProtectStatus fields as defined in the INI. Needs to be accessible as a byte for I/O, so use type punning.
240 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
242 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
244 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
246 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
248 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
250 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
252
254 byte wmiPW;
255 int16_t vvt2Angle; //Has to be a long for PID calcs (CL VVT control)
257 long vvt2Duty; //Has to be a long for PID calcs (CL VVT control)
259
260 // SD card status fields.
261 // TODO: conditional compile on SD_LOGGING once board definition is separated from globals.h
262 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
263 bool sdCardPresent : 1;
264 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
265 unsigned int sdCardType : 1;
266 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
267 bool sdCardReady : 1;
268 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
269 bool sdCardLogging : 1;
270 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
271 bool sdCardError : 1;
272 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
273 unsigned int sdCardFS : 1;
274 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
275 bool sdCardUnused : 1;
276
277 // airConStatus fields.
278 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
280 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
282 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
284 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
286 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
288 // cppcheck-suppress misra-c2012-6.1 ; False positive - MISRA C:2012 Rule (R 6.1) permits the use of boolean for bit fields.
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 airconFanOn : 1;
292
294};
295
300static inline bool HasAnySyncUnsafe(const statuses &status) {
301 return status.hasSync || status.halfSync;
302}
303
304static inline bool HasAnySync(const statuses &status) {
305 ATOMIC() {
306 return HasAnySyncUnsafe(status);
307 }
308 return false; // Just here to avoid compiler warning.
309}
310
311static inline bool isEngineProtectActive(const statuses &status) {
312 return status.engineProtectRpm
313 || status.engineProtectBoostCut
314 || status.engineProtectOil
315 || status.engineProtectAfr
316 || status.engineProtectClt;
317}
318
319static inline void resetEngineProtect(statuses &status) {
320 status.engineProtectRpm = false;
321 status.engineProtectBoostCut = false;
322 status.engineProtectOil = false;
323 status.engineProtectAfr = false;
324 status.engineProtectClt = false;
325 status.engineProtectIoError = false;
326}
Bit twiddling macros.
uint8_t byte
Definition config_pages.h:16
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:348
static bool HasAnySync(const statuses &status)
Definition statuses.h:304
static bool isEngineProtectActive(const statuses &status)
Definition statuses.h:311
static bool HasAnySyncUnsafe(const statuses &status)
Non-atomic version of HasAnySync. **Should only be called in an ATOMIC() block***.
Definition statuses.h:300
static void resetEngineProtect(statuses &status)
Definition statuses.h:319
The status struct with current values for all 'live' variables.
Definition statuses.h:23
volatile bool isInj4Open
Injector 4 status: true == open, false == closed.
Definition statuses.h:100
bool airconFanOn
Indicates whether the A/C fan is running.
Definition statuses.h:291
byte dwellCorrection
Definition statuses.h:68
bool wueIsActive
Is Warm Up Enrichment (WUE) active (true) or not (false)
Definition statuses.h:179
uint16_t baroADC
Definition statuses.h:45
bool airconRequested
Indicates whether the A/C button is pressed.
Definition statuses.h:279
volatile byte syncLossCounter
Definition statuses.h:223
byte ASEValue
Definition statuses.h:232
bool engineProtectClt
Engine protection is active (true) based on exceeding coolant limits.
Definition statuses.h:249
int16_t vvt2Angle
Definition statuses.h:255
volatile bool hasSync
Definition statuses.h:25
bool engineProtectRpm
Engine protection is active (true) due to exceeding RPM limits.
Definition statuses.h:241
uint16_t canin[16]
16bit raw value of selected canin data for channels 0-15
Definition statuses.h:214
byte oilPressure
Definition statuses.h:237
uint8_t current_caninchannel
Definition statuses.h:215
bool launchingSoft
Definition statuses.h:199
unsigned int PW3
In uS.
Definition statuses.h:190
byte launchCorrection
Definition statuses.h:80
unsigned int PW6
In uS.
Definition statuses.h:193
bool idleUpActive
Definition statuses.h:86
bool wmiTankEmpty
Is the Water Methanol Injection tank empty (true) or not (false)
Definition statuses.h:141
long vvt1Duty
Definition statuses.h:230
unsigned int sdCardFS
File system type 0=no FAT16, 1=FAT32.
Definition statuses.h:273
bool CTPSActive
Definition statuses.h:87
unsigned int PW8
In uS.
Definition statuses.h:195
byte CLIdleTarget
Definition statuses.h:85
byte vvt2TargetAngle
Definition statuses.h:256
byte TPSlast
Definition statuses.h:52
bool clutchTrigger
Definition statuses.h:30
bool testActive
Definition statuses.h:211
bool idleUpOutputActive
Definition statuses.h:234
bool engineIsRunning
Is engine running (true) or not (false)
Definition statuses.h:173
bool secondSparkTableActive
Secondary spark table is use (true) or not (false)
Definition statuses.h:161
bool vvt2AngleError
VVT2 cam angle within limits (false) or not (true)
Definition statuses.h:145
unsigned long AEEndTime
Definition statuses.h:90
byte baroCorrection
Definition statuses.h:79
bool flatShiftingHard
Definition statuses.h:205
int16_t vvt1Angle
Definition statuses.h:228
bool engineProtectIoError
Definition statuses.h:251
bool vvt1AngleError
VVT1 cam angle within limits (false) or not (true)
Definition statuses.h:143
volatile bool hasFullSync
Definition statuses.h:121
unsigned int PW4
In uS.
Definition statuses.h:191
byte VE2
Definition statuses.h:57
byte flexCorrection
Definition statuses.h:81
bool clutchTriggerActive
Is the clutch trigger active (true) or not (false)
Definition statuses.h:168
volatile uint16_t loopsPerSecond
Definition statuses.h:198
bool toothLogEnabled
Definition statuses.h:226
bool burnPending
Is an EEPROM burn pending (true) or not (false)
Definition statuses.h:149
byte VE1
Definition statuses.h:56
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:285
bool sdCardLogging
true if logging active, false if not
Definition statuses.h:269
int IAT
Definition statuses.h:62
int16_t mapDOT
Definition statuses.h:53
uint16_t ignLoad
Definition statuses.h:221
byte wueCorrection
Definition statuses.h:76
byte batCorrection
Definition statuses.h:77
int8_t advance
Definition statuses.h:70
unsigned int PW1
In uS.
Definition statuses.h:188
uint16_t dwell
dwell (coil primary winding/circuit on) time (in ms * 10 ? See correctionsDwell)
Definition statuses.h:66
uint8_t tpsADC
Definition statuses.h:50
bool hardLimitActive
Hard limit status: true == on, false == off.
Definition statuses.h:114
volatile byte knockCount
Definition statuses.h:225
bool knockRetardActive
Is knock retardation active (true) or not (false)
Definition statuses.h:163
bool knockPulseDetected
Definition statuses.h:165
byte nSquirts
Number of injector squirts per cycle (per injector)
Definition statuses.h:219
int8_t advance2
Definition statuses.h:72
bool sdCardUnused
true if unused, false if not
Definition statuses.h:275
bool engineIsCranking
Is engine cranking (true) or not (false)
Definition statuses.h:175
uint16_t vss
Definition statuses.h:233
bool fanOn
Engine fan status (true == on, false == off)
Definition statuses.h:147
byte knockRetard
Definition statuses.h:224
uint16_t boostTarget
Definition statuses.h:207
uint16_t EMAP
EMAP ... (See config6::useEMAP for EMAP enablement)
Definition statuses.h:47
bool fuelPumpOn
Definition statuses.h:222
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:287
bool sdCardReady
true if ready, false if not
Definition statuses.h:267
byte gear
Definition statuses.h:235
volatile bool injPrimed
Tracks whether or not the injector priming has been completed yet.
Definition statuses.h:36
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:283
volatile byte secl
Definition statuses.h:197
bool secondFuelTableActive
Secondary fuel table is use (true) or not (false)
Definition statuses.h:130
bool isTestModeActive
Definition statuses.h:210
bool nitrousActive
Nitrous on (true) or off (false)
Definition statuses.h:128
uint16_t fuelLoad
Definition statuses.h:220
int coolant
Definition statuses.h:60
byte VE
Definition statuses.h:55
bool isDeceleratingTPS
Are we decelerating (true) or not (false), based on TPS.
Definition statuses.h:185
volatile uint16_t actualDwell
actual dwell time if new ignition mode is used (in uS)
Definition statuses.h:67
byte fuelPressure
Definition statuses.h:236
unsigned int clutchEngagedRPM
Definition statuses.h:204
volatile uint32_t startRevolutions
Definition statuses.h:206
unsigned int PW5
In uS.
Definition statuses.h:192
volatile bool tachoAlt
Definition statuses.h:40
uint16_t boostDuty
Boost Duty percentage value * 100 to give 2 points of precision.
Definition statuses.h:212
volatile bool isToothLog1Full
Boost Cut status: true == active, false == inactive.
Definition statuses.h:104
bool previousClutchTrigger
Definition statuses.h:32
bool engineProtectAfr
Engine protection is active (true) based on maximum AFR limits.
Definition statuses.h:247
byte battery10
Definition statuses.h:69
bool commCompat
Definition statuses.h:153
volatile byte runSecs
Definition statuses.h:196
uint16_t iatADC
Definition statuses.h:63
int8_t advance1
Definition statuses.h:71
uint16_t RPM
RPM - Current Revs per minute.
Definition statuses.h:42
volatile bool isInj3Open
Injector 3 status: true == open, false == closed.
Definition statuses.h:98
bool flatShiftSoftCut
Is the flat shift soft cut active (true) or not (false)
Definition statuses.h:159
bool softLaunchActive
Soft Launch status: true == on, false == off.
Definition statuses.h:112
long longRPM
RPM as long int (gets assigned to / maintained in statuses.RPM as well)
Definition statuses.h:44
bool stagingActive
Is fuel injection staging active (true) or not (false)
Definition statuses.h:151
bool hardLaunchActive
Hard Launch status: true == on, false == off.
Definition statuses.h:109
byte wmiPW
Definition statuses.h:254
bool aseIsActive
Is After Start Enrichment (ASE) active (true) or not (false)
Definition statuses.h:177
bool vssUiRefresh
Flag to indicate that the VSS value needs to be refreshed in the UI.
Definition statuses.h:132
volatile int8_t fuelTemp
Definition statuses.h:89
byte vvt1TargetAngle
Definition statuses.h:229
byte RPMdiv100
RPM value scaled (divided by 100) to fit a byte (0-255, e.g. 12000 => 120)
Definition statuses.h:43
bool sdCardPresent
true if a card is present, false if not
Definition statuses.h:263
uint16_t corrections
Definition statuses.h:73
long vvt2Duty
Definition statuses.h:257
byte fanDuty
Definition statuses.h:253
uint8_t TPS
Definition statuses.h:49
byte outputsStatus
Definition statuses.h:258
bool idleOn
Is the idle code active : true == active, false == inactive.
Definition statuses.h:118
byte afrTarget
Definition statuses.h:84
bool engineProtectOil
Engine protection is active (true) due to minimum oil pressure limits.
Definition statuses.h:245
bool launchingHard
Definition statuses.h:200
volatile int rpmDOT
Definition statuses.h:54
byte fuelTempCorrection
Definition statuses.h:82
bool softLimitActive
Soft limit status: true == on, false == off.
Definition statuses.h:116
volatile bool isInj1Open
Injector 1 status: true == open, false == closed.
Definition statuses.h:94
bool airconCltLockout
Indicates the A/C is locked out either due to high coolant temp.
Definition statuses.h:289
byte nitrous_status
Definition statuses.h:218
unsigned int PW2
In uS.
Definition statuses.h:189
bool isAcceleratingTPS
Are we accelerating (true) or not (false), based on TPS.
Definition statuses.h:183
uint8_t systemTemp
Definition statuses.h:293
volatile bool fpPrimed
Tracks whether or not the fuel pump priming has been completed yet.
Definition statuses.h:34
int16_t tpsDOT
Definition statuses.h:51
uint8_t O2_2
Definition statuses.h:59
uint16_t freeRAM
Definition statuses.h:202
bool sdCardError
true if error, false if not
Definition statuses.h:271
byte compositeTriggerUsed
Definition statuses.h:227
byte egoCorrection
Definition statuses.h:75
int16_t flexBoostCorrection
Definition statuses.h:217
bool initialisationComplete
Tracks whether the setup() function has run completely.
Definition statuses.h:28
int8_t flexIgnCorrection
Definition statuses.h:83
byte idleLoad
Either the current steps or current duty cycle for the idle control.
Definition statuses.h:213
uint16_t O2_2ADC
Definition statuses.h:65
bool airconCompressorOn
Indicates whether the A/C compressor is running.
Definition statuses.h:281
bool engineProtectBoostCut
Engine protection is active (true) due to exceeding MAP limits.
Definition statuses.h:243
byte iatCorrection
Definition statuses.h:78
uint8_t O2
Definition statuses.h:58
bool allowLegacyComms
Definition statuses.h:155
uint16_t injAngle
Definition statuses.h:231
volatile bool isInj2Open
Injector 2 status: true == open, false == closed.
Definition statuses.h:96
bool resetPreventActive
Reset prevent on (true) or off (false)
Definition statuses.h:125
long MAP
Manifold absolute pressure. Has to be a long for PID calcs (Boost control)
Definition statuses.h:46
volatile bool tachoSweepEnabled
Definition statuses.h:38
uint16_t crankRPM
Definition statuses.h:216
uint8_t baro
Barometric pressure is simply the initial MAP reading, taken before the engine is running....
Definition statuses.h:48
volatile byte ethanolPct
Definition statuses.h:88
unsigned int PW7
In uS.
Definition statuses.h:194
uint16_t AEamount
Definition statuses.h:74
uint16_t cltADC
Definition statuses.h:61
uint16_t O2ADC
Definition statuses.h:64
volatile bool halfSync
Definition statuses.h:135
bool isDFCOActive
Deceleration Fuel Cut Off status: true == active, false == inactive.
Definition statuses.h:102
unsigned int sdCardType
0==SD, 1==SDHC
Definition statuses.h:265
unsigned int nSquirtsStatus
Definition statuses.h:137