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