Speeduino
|
#include <globals.h>
The status struct with current values for all 'live' variables. In current version this is 64 bytes. Instantiated as global currentStatus. int *ADC (Analog-to-digital value / count) values contain the "raw" value from AD conversion, which get converted to unit based values in similar variable(s) without ADC part in name (see sensors.ino for reading of sensors).
int8_t statuses::advance |
The current advance value being used in the spark calculation. Can be the same as advance1 or advance2, or a calculated value of both
int8_t statuses::advance1 |
The advance value from ignition table 1
int8_t statuses::advance2 |
The advance value from ignition table 2
uint16_t statuses::AEamount |
The amount of acceleration enrichment currently being applied. 100=No change. Varies above 255
The target end time used whenever AE (acceleration enrichment) is turned on
byte statuses::airConStatus |
byte statuses::ASEValue |
uint8_t statuses::baro |
Barometric pressure is simply the initial MAP reading, taken before the engine is running. Alternatively, can be taken from an external sensor.
uint16_t statuses::baroADC |
byte statuses::baroCorrection |
The amount of correction being applied for the current baro reading
byte statuses::batCorrection |
The amount of battery voltage enrichment currently being applied
byte statuses::battery10 |
The current BRV in volts (multiplied by 10. Eg 12.5V = 125)
uint16_t statuses::boostDuty |
Boost Duty percentage value * 100 to give 2 points of precision.
uint16_t statuses::boostTarget |
uint16_t statuses::canin[16] |
16bit raw value of selected canin data for channels 0-15
byte statuses::CLIdleTarget |
The target idle RPM (when closed loop idle control is active)
uint16_t statuses::cltADC |
The RPM at which the clutch was last depressed. Used for distinguishing between launch control and flat shift
bool statuses::clutchTrigger |
byte statuses::compositeTriggerUsed |
int statuses::coolant |
Coolant temperature reading
uint16_t statuses::corrections |
The total current corrections % amount
uint16_t statuses::crankRPM = 400 |
The actual cranking RPM limit. This is derived from the value in the config page, but saves us multiplying it every time it's used (Config page value is stored divided by 10)
bool statuses::CTPSActive |
Whether the externally controlled closed throttle position sensor is currently active
uint8_t statuses::current_caninchannel = 0 |
Current CAN channel, defaults to 0
uint16_t statuses::dwell |
dwell (coil primary winding/circuit on) time (in ms * 10 ? See correctionsDwell)
byte statuses::dwellCorrection |
The amount of correction being applied to the dwell time (in unit ...).
byte statuses::egoCorrection |
The amount of closed loop AFR enrichment currently being applied
int16_t statuses::EMAP |
EMAP ... (See config6::useEMAP for EMAP enablement)
uint8_t statuses::engine |
Engine status bits (See BIT_ENGINE_* defines on top of this file)
byte statuses::engineProtectStatus |
Ethanol reading (if enabled). 0 = No ethanol, 100 = pure ethanol. Eg E85 = 85.
byte statuses::fanDuty |
bool statuses::flatShiftingHard |
int16_t statuses::flexBoostCorrection |
Amount of boost added based on flex
byte statuses::flexCorrection |
Amount of correction being applied to compensate for ethanol content
int8_t statuses::flexIgnCorrection |
Amount of additional advance being applied based on flex. Note the type as this allows for negative values
uint16_t statuses::freeRAM |
int16_t statuses::fuelLoad |
int16_t statuses::fuelLoad2 |
byte statuses::fuelPressure |
Fuel pressure in PSI
bool statuses::fuelPumpOn |
Indicator showing the current status of the fuel pump
byte statuses::fuelTempCorrection |
Amount of correction being applied to compensate for fuel temperature
byte statuses::gear |
Current gear (Calculated from vss)
Flag for crank/cam position being known by decoders (See decoders.ino). This is used for sanity checking e.g. before logging tooth history or reading some sensors and computing readings.
int statuses::IAT |
Inlet air temperature reading
uint16_t statuses::iatADC |
byte statuses::iatCorrection |
The amount of inlet air temperature adjustment currently being applied
byte statuses::idleLoad |
Either the current steps or current duty cycle for the idle control.
bool statuses::idleUpActive |
Whether the externally controlled idle up is currently active
bool statuses::idleUpOutputActive |
Whether the idle up output is currently active
int16_t statuses::ignLoad |
int16_t statuses::ignLoad2 |
bool statuses::initialisationComplete |
uint16_t statuses::injAngle |
byte statuses::knockRetard |
byte statuses::launchCorrection |
The amount of correction being applied if launch control is active
bool statuses::launchingHard |
Indicator showing whether hard launch control adjustments are active
bool statuses::launchingSoft |
Indicator showing whether soft launch control adjustments are active
long statuses::longRPM |
RPM as long int (gets assigned to / maintained in statuses.RPM as well)
A performance indicator showing the number of main loops that are being executed each second
long statuses::MAP |
Manifold absolute pressure. Has to be a long for PID calcs (Boost control)
int16_t statuses::mapDOT |
MAP delta over time. Measures the kpa per second that the MAP is changing. Note that is signed value, because MAPdot can be also negative
byte statuses::nChannels |
Number of fuel and ignition channels.
byte statuses::nitrous_status |
byte statuses::nSquirts |
Number of injector squirts per cycle (per injector)
uint8_t statuses::O2 |
Primary O2 sensor reading
uint8_t statuses::O2_2 |
Secondary O2 sensor reading
uint16_t statuses::O2_2ADC |
uint16_t statuses::O2ADC |
byte statuses::oilPressure |
Oil pressure in PSI
byte statuses::outputsStatus |
bool statuses::previousClutchTrigger |
uint16_t statuses::RPM |
RPM - Current Revs per minute.
byte statuses::RPMdiv100 |
RPM value scaled (divided by 100) to fit a byte (0-255, e.g. 12000 => 120)
Counter of seconds since cranking commenced (Maxes out at 255 to prevent overflow)
Counter incrementing once per second. Will overflow after 255 and begin again. This is used by TunerStudio to maintain comms sync
A counter for how many revolutions have been completed since sync was achieved.
status 2/control indicator bits (launch control, boost cut, spark errors, See BIT_STATUS2_* defines)
Status 5 ... (See also config10 Status 5* members and BIT_STATU5_* defines)
bool statuses::testActive |
byte statuses::testOutputs |
Test Output bits (only first bit used/tested ?)
bool statuses::toothLogEnabled |
uint8_t statuses::TPS |
The current TPS reading (0% - 100%). Is the tpsADC value after the calibration is applied
uint8_t statuses::tpsADC |
byte (valued: 0-255) representation of the TPS. Downsampled from the original 10-bit (0-1023) reading, but before any calibration is applied
int16_t statuses::tpsDOT |
TPS delta over time. Measures the % per second that the TPS is changing. Note that is signed value, because TPSdot can be also negative
byte statuses::TPSlast |
The previous TPS reading
byte statuses::TS_SD_Status |
byte statuses::VE |
The current VE value being used in the fuel calculation. Can be the same as VE1 or VE2, or a calculated value of both.
byte statuses::VE1 |
The VE value from fuel table 1
byte statuses::VE2 |
The VE value from fuel table 2, if in use (and required conditions are met)
uint16_t statuses::vss |
Current speed reading. Natively stored in kph and converted to mph in TS if required
int16_t statuses::vvt1Angle |
long statuses::vvt1Duty |
byte statuses::vvt1TargetAngle |
int16_t statuses::vvt2Angle |
long statuses::vvt2Duty |
byte statuses::vvt2TargetAngle |
byte statuses::wmiPW |
byte statuses::wueCorrection |
The amount of warmup enrichment currently being applied