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