1281 lines
24 KiB
C
1281 lines
24 KiB
C
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) console/binary/output_channels.txt Thu Mar 14 17:15:34 UTC 2024
|
|
// by class com.rusefi.output.CHeaderConsumer
|
|
// begin
|
|
#pragma once
|
|
#include "rusefi_types.h"
|
|
// start of pid_status_s
|
|
struct pid_status_s {
|
|
/**
|
|
* offset 0
|
|
*/
|
|
float pTerm = (float)0;
|
|
/**
|
|
* offset 4
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> iTerm = (int16_t)0;
|
|
/**
|
|
* offset 6
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> dTerm = (int16_t)0;
|
|
/**
|
|
* offset 8
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> output = (int16_t)0;
|
|
/**
|
|
* offset 10
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> error = (int16_t)0;
|
|
/**
|
|
* offset 12
|
|
*/
|
|
uint32_t resetCounter = (uint32_t)0;
|
|
};
|
|
static_assert(sizeof(pid_status_s) == 16);
|
|
|
|
// start of output_channels_s
|
|
struct output_channels_s {
|
|
/**
|
|
* SD: Present
|
|
offset 0 bit 0 */
|
|
bool sd_present : 1 {};
|
|
/**
|
|
* SD: Logging
|
|
offset 0 bit 1 */
|
|
bool sd_logging_internal : 1 {};
|
|
/**
|
|
offset 0 bit 2 */
|
|
bool triggerScopeReady : 1 {};
|
|
/**
|
|
offset 0 bit 3 */
|
|
bool antilagTriggered : 1 {};
|
|
/**
|
|
* Radiator Fan
|
|
offset 0 bit 4 */
|
|
bool isFanOn : 1 {};
|
|
/**
|
|
offset 0 bit 5 */
|
|
bool isO2HeaterOn : 1 {};
|
|
/**
|
|
offset 0 bit 6 */
|
|
bool checkEngine : 1 {};
|
|
/**
|
|
offset 0 bit 7 */
|
|
bool needBurn : 1 {};
|
|
/**
|
|
* SD: MSD
|
|
offset 0 bit 8 */
|
|
bool sd_msd : 1 {};
|
|
/**
|
|
* Radiator Fan 2
|
|
offset 0 bit 9 */
|
|
bool isFan2On : 1 {};
|
|
/**
|
|
* Tooth Logger Ready
|
|
offset 0 bit 10 */
|
|
bool toothLogReady : 1 {};
|
|
/**
|
|
* Error: TPS
|
|
offset 0 bit 11 */
|
|
bool isTpsError : 1 {};
|
|
/**
|
|
* Error: CLT
|
|
offset 0 bit 12 */
|
|
bool isCltError : 1 {};
|
|
/**
|
|
* Error: MAP
|
|
offset 0 bit 13 */
|
|
bool isMapError : 1 {};
|
|
/**
|
|
* Error: IAT
|
|
offset 0 bit 14 */
|
|
bool isIatError : 1 {};
|
|
/**
|
|
* Error: Trigger
|
|
offset 0 bit 15 */
|
|
bool isTriggerError : 1 {};
|
|
/**
|
|
* Error: Active
|
|
offset 0 bit 16 */
|
|
bool hasCriticalError : 1 {};
|
|
/**
|
|
* Warning: Active
|
|
offset 0 bit 17 */
|
|
bool isWarnNow : 1 {};
|
|
/**
|
|
* Error: Pedal
|
|
offset 0 bit 18 */
|
|
bool isPedalError : 1 {};
|
|
/**
|
|
offset 0 bit 19 */
|
|
bool isKnockChipOk : 1 {};
|
|
/**
|
|
* Launch Control Triggered
|
|
offset 0 bit 20 */
|
|
bool launchTriggered : 1 {};
|
|
/**
|
|
* Error: TPS2
|
|
offset 0 bit 21 */
|
|
bool isTps2Error : 1 {};
|
|
/**
|
|
* Injector Fault
|
|
offset 0 bit 22 */
|
|
bool injectorFault : 1 {};
|
|
/**
|
|
* Ignition Fault
|
|
offset 0 bit 23 */
|
|
bool ignitionFault : 1 {};
|
|
/**
|
|
offset 0 bit 24 */
|
|
bool isMainRelayOn : 1 {};
|
|
/**
|
|
* isUsbConnected
|
|
* Original reason for this is to check if USB is connected from Lua
|
|
offset 0 bit 25 */
|
|
bool isUsbConnected : 1 {};
|
|
/**
|
|
offset 0 bit 26 */
|
|
bool dfcoActive : 1 {};
|
|
/**
|
|
offset 0 bit 27 */
|
|
bool unusedBit_27_27 : 1 {};
|
|
/**
|
|
offset 0 bit 28 */
|
|
bool unusedBit_27_28 : 1 {};
|
|
/**
|
|
offset 0 bit 29 */
|
|
bool unusedBit_27_29 : 1 {};
|
|
/**
|
|
offset 0 bit 30 */
|
|
bool unusedBit_27_30 : 1 {};
|
|
/**
|
|
offset 0 bit 31 */
|
|
bool unusedBit_27_31 : 1 {};
|
|
/**
|
|
* @@GAUGE_NAME_RPM@@
|
|
* units: RPM
|
|
* offset 4
|
|
*/
|
|
uint16_t RPMValue = (uint16_t)0;
|
|
/**
|
|
* dRPM
|
|
* units: RPM acceleration
|
|
* offset 6
|
|
*/
|
|
int16_t rpmAcceleration = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_GEAR_RATIO@@
|
|
* units: value
|
|
* offset 8
|
|
*/
|
|
scaled_channel<uint16_t, 100, 1> speedToRpmRatio = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VVS@@
|
|
* units: kph
|
|
* offset 10
|
|
*/
|
|
uint8_t unusedVehicleSpeedKph = (uint8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_CPU_TEMP@@
|
|
* units: deg C
|
|
* offset 11
|
|
*/
|
|
int8_t internalMcuTemperature = (int8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_CLT@@
|
|
* units: deg C
|
|
* offset 12
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> coolant = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_IAT@@
|
|
* units: deg C
|
|
* offset 14
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> intake = (int16_t)0;
|
|
/**
|
|
* units: deg C
|
|
* offset 16
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> auxTemp1 = (int16_t)0;
|
|
/**
|
|
* units: deg C
|
|
* offset 18
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> auxTemp2 = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_TPS@@
|
|
* units: %
|
|
* offset 20
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> TPSValue = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_THROTTLE_PEDAL@@
|
|
* units: %
|
|
* offset 22
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> throttlePedalPosition = (int16_t)0;
|
|
/**
|
|
* units: ADC
|
|
* offset 24
|
|
*/
|
|
uint16_t tpsADC = (uint16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 26
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> rawMaf = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AIR_FLOW_MEASURED@@
|
|
* units: kg/h
|
|
* offset 28
|
|
*/
|
|
scaled_channel<uint16_t, 10, 1> mafMeasured = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_MAP@@
|
|
* units: kPa
|
|
* offset 30
|
|
*/
|
|
scaled_channel<uint16_t, 30, 1> MAPValue = (uint16_t)0;
|
|
/**
|
|
* units: kPa
|
|
* offset 32
|
|
*/
|
|
scaled_channel<uint16_t, 30, 1> baroPressure = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_LAMBDA@@
|
|
* offset 34
|
|
*/
|
|
scaled_channel<uint16_t, 10000, 1> lambdaValue = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VBAT@@
|
|
* units: V
|
|
* offset 36
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> VBatt = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_OIL_PRESSURE@@
|
|
* units: kPa
|
|
* offset 38
|
|
*/
|
|
scaled_channel<uint16_t, 30, 1> oilPressure = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VVT_B1I@@
|
|
* units: deg
|
|
* offset 40
|
|
*/
|
|
scaled_channel<int16_t, 50, 1> vvtPositionB1I = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_LAST_INJECTION@@
|
|
* Actual last injection time - including all compensation and injection mode
|
|
* units: ms
|
|
* offset 42
|
|
*/
|
|
scaled_channel<uint16_t, 300, 1> actualLastInjection = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_INJ_DUTY@@
|
|
* units: %
|
|
* offset 44
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> injectorDutyCycle = (uint8_t)0;
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 45
|
|
*/
|
|
uint8_t alignmentFill_at_45[1];
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_INJECTION_TIMING@@
|
|
* units: deg
|
|
* offset 46
|
|
*/
|
|
int16_t injectionOffset = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_ENGINE_CRC16@@
|
|
* units: crc16
|
|
* offset 48
|
|
*/
|
|
uint16_t engineMakeCodeNameCrc16 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_WALL_AMOUNT@@
|
|
* units: mg
|
|
* offset 50
|
|
*/
|
|
scaled_channel<uint16_t, 100, 1> wallFuelAmount = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_WALL_CORRECTION@@
|
|
* units: mg
|
|
* offset 52
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> wallFuelCorrectionValue = (int16_t)0;
|
|
/**
|
|
* offset 54
|
|
*/
|
|
uint16_t revolutionCounterSinceStart = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_CAN_READ_OK@@
|
|
* offset 56
|
|
*/
|
|
uint16_t canReadCounter = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_TPS_EXTRA@@
|
|
* units: ms
|
|
* offset 58
|
|
*/
|
|
scaled_channel<int16_t, 300, 1> tpsAccelFuel = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_IGNITION_MODE@@
|
|
* offset 60
|
|
*/
|
|
uint8_t currentIgnitionMode = (uint8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_INJECTION_MODE@@
|
|
* offset 61
|
|
*/
|
|
uint8_t currentInjectionMode = (uint8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_DWELL_DUTY@@
|
|
* units: %
|
|
* offset 62
|
|
*/
|
|
scaled_channel<uint16_t, 100, 1> coilDutyCycle = (uint16_t)0;
|
|
/**
|
|
* ETB Target
|
|
* units: %
|
|
* offset 64
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> etbTarget = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_ETB_DUTY@@
|
|
* units: %
|
|
* offset 66
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> etb1DutyCycle = (int16_t)0;
|
|
/**
|
|
* Fuel level
|
|
* units: %
|
|
* offset 68
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> fuelTankLevel = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_CONSUMPTION@@
|
|
* units: grams
|
|
* offset 70
|
|
*/
|
|
uint16_t totalFuelConsumption = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_FLOW@@
|
|
* units: gram/s
|
|
* offset 72
|
|
*/
|
|
scaled_channel<uint16_t, 200, 1> fuelFlowRate = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_TPS2@@
|
|
* units: %
|
|
* offset 74
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> TPS2Value = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_TUNE_CRC16@@
|
|
* units: crc16
|
|
* offset 76
|
|
*/
|
|
uint16_t tuneCrc16 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_VE@@
|
|
* units: ratio
|
|
* offset 78
|
|
*/
|
|
scaled_channel<uint16_t, 10, 1> veValue = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_UPTIME@@
|
|
* units: sec
|
|
* offset 80
|
|
*/
|
|
uint32_t seconds = (uint32_t)0;
|
|
/**
|
|
* Engine Mode
|
|
* units: em
|
|
* offset 84
|
|
*/
|
|
uint32_t engineMode = (uint32_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VERSION@@
|
|
* units: version_f
|
|
* offset 88
|
|
*/
|
|
uint32_t firmwareVersion = (uint32_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 92
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawIdlePositionSensor = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 94
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawWastegatePosition = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_ACCEL_LAT@@
|
|
* units: G
|
|
* offset 96
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> accelerationLat = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_ACCEL_LON@@
|
|
* units: G
|
|
* offset 98
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> accelerationLon = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_DETECTED_GEAR@@
|
|
* offset 100
|
|
*/
|
|
uint8_t detectedGear = (uint8_t)0;
|
|
/**
|
|
* offset 101
|
|
*/
|
|
uint8_t maxTriggerReentrant = (uint8_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 102
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawLowFuelPressure = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 104
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawHighFuelPressure = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_PRESSURE_LOW@@
|
|
* units: kpa
|
|
* offset 106
|
|
*/
|
|
scaled_channel<int16_t, 30, 1> lowFuelPressure = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_DESIRED_GEAR@@
|
|
* units: gear
|
|
* offset 108
|
|
*/
|
|
int8_t tcuDesiredGear = (int8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FLEX@@
|
|
* units: %
|
|
* offset 109
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> flexPercent = (uint8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_WG_POSITION@@
|
|
* units: %
|
|
* offset 110
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> wastegatePositionSensor = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_PRESSURE_HIGH@@
|
|
* units: bar
|
|
* offset 112
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> highFuelPressure = (int16_t)0;
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 114
|
|
*/
|
|
uint8_t alignmentFill_at_114[2];
|
|
/**
|
|
* offset 116
|
|
*/
|
|
float calibrationValue = (float)0;
|
|
/**
|
|
* offset 120
|
|
*/
|
|
uint8_t calibrationMode = (uint8_t)0;
|
|
/**
|
|
* Idle: Stepper target position
|
|
* offset 121
|
|
*/
|
|
uint8_t idleStepperTargetPosition = (uint8_t)0;
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 122
|
|
*/
|
|
uint8_t alignmentFill_at_122[2];
|
|
/**
|
|
* offset 124
|
|
*/
|
|
uint32_t tsConfigVersion = (uint32_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_TRG_ERR@@
|
|
* units: counter
|
|
* offset 128
|
|
*/
|
|
uint32_t totalTriggerErrorCounter = (uint32_t)0;
|
|
/**
|
|
* offset 132
|
|
*/
|
|
uint32_t orderingErrorCounter = (uint32_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_WARNING_COUNTER@@
|
|
* units: count
|
|
* offset 136
|
|
*/
|
|
uint16_t warningCounter = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_WARNING_LAST@@
|
|
* units: error
|
|
* offset 138
|
|
*/
|
|
uint16_t lastErrorCode = (uint16_t)0;
|
|
/**
|
|
* units: error
|
|
* offset 140
|
|
*/
|
|
uint16_t recentErrorCode[8];
|
|
/**
|
|
* units: val
|
|
* offset 156
|
|
*/
|
|
float debugFloatField1 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 160
|
|
*/
|
|
float debugFloatField2 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 164
|
|
*/
|
|
float debugFloatField3 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 168
|
|
*/
|
|
float debugFloatField4 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 172
|
|
*/
|
|
float debugFloatField5 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 176
|
|
*/
|
|
float debugFloatField6 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 180
|
|
*/
|
|
float debugFloatField7 = (float)0;
|
|
/**
|
|
* units: val
|
|
* offset 184
|
|
*/
|
|
uint32_t debugIntField1 = (uint32_t)0;
|
|
/**
|
|
* units: val
|
|
* offset 188
|
|
*/
|
|
uint32_t debugIntField2 = (uint32_t)0;
|
|
/**
|
|
* units: val
|
|
* offset 192
|
|
*/
|
|
uint32_t debugIntField3 = (uint32_t)0;
|
|
/**
|
|
* units: val
|
|
* offset 196
|
|
*/
|
|
int16_t debugIntField4 = (int16_t)0;
|
|
/**
|
|
* units: val
|
|
* offset 198
|
|
*/
|
|
int16_t debugIntField5 = (int16_t)0;
|
|
/**
|
|
* EGT
|
|
* units: deg C
|
|
* offset 200
|
|
*/
|
|
scaled_channel<int16_t, 4, 1> egt[EGT_CHANNEL_COUNT];
|
|
/**
|
|
* units: V
|
|
* offset 216
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawTps1Primary = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 218
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawPpsPrimary = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 220
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawClt = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 222
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawIat = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 224
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawOilPressure = (int16_t)0;
|
|
/**
|
|
* offset 226
|
|
*/
|
|
uint8_t fuelClosedLoopBinIdx = (uint8_t)0;
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 227
|
|
*/
|
|
uint8_t alignmentFill_at_227[1];
|
|
/**
|
|
* units: V
|
|
* offset 228
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawPpsSecondary = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_IDLE_POSITION@@
|
|
* units: %
|
|
* offset 230
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> idlePositionSensor = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AFR@@
|
|
* units: AFR
|
|
* offset 232
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> AFRValue = (uint16_t)0;
|
|
/**
|
|
* Vss Accel
|
|
* units: m/s2
|
|
* offset 234
|
|
*/
|
|
scaled_channel<uint16_t, 300, 1> VssAcceleration = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_LAMBDA2@@
|
|
* offset 236
|
|
*/
|
|
scaled_channel<uint16_t, 10000, 1> lambdaValue2 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AFR2@@
|
|
* units: AFR
|
|
* offset 238
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> AFRValue2 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VVT_B1E@@
|
|
* units: deg
|
|
* offset 240
|
|
*/
|
|
scaled_channel<int16_t, 50, 1> vvtPositionB1E = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VVT_B2I@@
|
|
* units: deg
|
|
* offset 242
|
|
*/
|
|
scaled_channel<int16_t, 50, 1> vvtPositionB2I = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VVT_B2E@@
|
|
* units: deg
|
|
* offset 244
|
|
*/
|
|
scaled_channel<int16_t, 50, 1> vvtPositionB2E = (int16_t)0;
|
|
/**
|
|
* Fuel: Trim bank
|
|
* units: %
|
|
* offset 246
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> fuelPidCorrection[2];
|
|
/**
|
|
* units: V
|
|
* offset 250
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawTps1Secondary = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 252
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawTps2Primary = (int16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 254
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawTps2Secondary = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_ACCEL_VERT@@
|
|
* units: G
|
|
* offset 256
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> accelerationVert = (int16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_GYRO_YAW@@
|
|
* units: deg/sec
|
|
* offset 258
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> gyroYaw = (int16_t)0;
|
|
/**
|
|
* units: deg
|
|
* offset 260
|
|
*/
|
|
int8_t vvtTargets[4];
|
|
/**
|
|
* @@GAUGE_NAME_TURBO_SPEED@@
|
|
* units: hz
|
|
* offset 264
|
|
*/
|
|
uint16_t turboSpeed = (uint16_t)0;
|
|
/**
|
|
* Ign: Timing Cyl
|
|
* units: deg
|
|
* offset 266
|
|
*/
|
|
scaled_channel<int16_t, 50, 1> ignitionAdvanceCyl[MAX_CYLINDER_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 290
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> tps1Split = (int16_t)0;
|
|
/**
|
|
* units: %
|
|
* offset 292
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> tps2Split = (int16_t)0;
|
|
/**
|
|
* units: %
|
|
* offset 294
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> tps12Split = (int16_t)0;
|
|
/**
|
|
* units: %
|
|
* offset 296
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> accPedalSplit = (int16_t)0;
|
|
/**
|
|
* Ign: Cut Code
|
|
* units: code
|
|
* offset 298
|
|
*/
|
|
int8_t sparkCutReason = (int8_t)0;
|
|
/**
|
|
* Fuel: Cut Code
|
|
* units: code
|
|
* offset 299
|
|
*/
|
|
int8_t fuelCutReason = (int8_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AIR_FLOW_ESTIMATE@@
|
|
* units: kg/h
|
|
* offset 300
|
|
*/
|
|
scaled_channel<uint16_t, 10, 1> mafEstimate = (uint16_t)0;
|
|
/**
|
|
* sync: instant RPM
|
|
* units: rpm
|
|
* offset 302
|
|
*/
|
|
uint16_t instantRpm = (uint16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 304
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> rawMap = (uint16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 306
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> rawAfr = (uint16_t)0;
|
|
/**
|
|
* offset 308
|
|
*/
|
|
float calibrationValue2 = (float)0;
|
|
/**
|
|
* Lua: Tick counter
|
|
* units: count
|
|
* offset 312
|
|
*/
|
|
uint32_t luaInvocationCounter = (uint32_t)0;
|
|
/**
|
|
* Lua: Last tick duration
|
|
* units: nt
|
|
* offset 316
|
|
*/
|
|
uint32_t luaLastCycleDuration = (uint32_t)0;
|
|
/**
|
|
* offset 320
|
|
*/
|
|
uint32_t vssEdgeCounter = (uint32_t)0;
|
|
/**
|
|
* offset 324
|
|
*/
|
|
uint32_t issEdgeCounter = (uint32_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AUX_LINEAR_1@@
|
|
* offset 328
|
|
*/
|
|
float auxLinear1 = (float)0;
|
|
/**
|
|
* @@GAUGE_NAME_AUX_LINEAR_2@@
|
|
* offset 332
|
|
*/
|
|
float auxLinear2 = (float)0;
|
|
/**
|
|
* units: kPa
|
|
* offset 336
|
|
*/
|
|
scaled_channel<uint16_t, 10, 1> fallbackMap = (uint16_t)0;
|
|
/**
|
|
* Instant MAP
|
|
* units: kPa
|
|
* offset 338
|
|
*/
|
|
scaled_channel<uint16_t, 30, 1> instantMAPValue = (uint16_t)0;
|
|
/**
|
|
* units: us
|
|
* offset 340
|
|
*/
|
|
uint16_t maxLockedDuration = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_CAN_WRITE_OK@@
|
|
* offset 342
|
|
*/
|
|
uint16_t canWriteOk = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_CAN_WRITE_ERR@@
|
|
* offset 344
|
|
*/
|
|
uint16_t canWriteNotOk = (uint16_t)0;
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 346
|
|
*/
|
|
uint8_t alignmentFill_at_346[2];
|
|
/**
|
|
* offset 348
|
|
*/
|
|
uint32_t triggerPrimaryFall = (uint32_t)0;
|
|
/**
|
|
* offset 352
|
|
*/
|
|
uint32_t triggerPrimaryRise = (uint32_t)0;
|
|
/**
|
|
* offset 356
|
|
*/
|
|
uint32_t triggerSecondaryFall = (uint32_t)0;
|
|
/**
|
|
* offset 360
|
|
*/
|
|
uint32_t triggerSecondaryRise = (uint32_t)0;
|
|
/**
|
|
* offset 364
|
|
*/
|
|
uint16_t triggerVvtFall = (uint16_t)0;
|
|
/**
|
|
* offset 366
|
|
*/
|
|
uint16_t triggerVvtRise = (uint16_t)0;
|
|
/**
|
|
* offset 368
|
|
*/
|
|
uint16_t triggerVvt2Fall = (uint16_t)0;
|
|
/**
|
|
* offset 370
|
|
*/
|
|
uint16_t triggerVvt2Rise = (uint16_t)0;
|
|
/**
|
|
* offset 372
|
|
*/
|
|
uint8_t starterState = (uint8_t)0;
|
|
/**
|
|
* offset 373
|
|
*/
|
|
uint8_t starterRelayDisable = (uint8_t)0;
|
|
/**
|
|
* Ign: Multispark count
|
|
* offset 374
|
|
*/
|
|
uint8_t multiSparkCounter = (uint8_t)0;
|
|
/**
|
|
* offset 375
|
|
*/
|
|
uint8_t extiOverflowCount = (uint8_t)0;
|
|
/**
|
|
* offset 376
|
|
*/
|
|
pid_status_s alternatorStatus;
|
|
/**
|
|
* offset 392
|
|
*/
|
|
pid_status_s idleStatus;
|
|
/**
|
|
* offset 408
|
|
*/
|
|
pid_status_s etbStatus;
|
|
/**
|
|
* offset 424
|
|
*/
|
|
pid_status_s boostStatus;
|
|
/**
|
|
* offset 440
|
|
*/
|
|
pid_status_s wastegateDcStatus;
|
|
/**
|
|
* offset 456
|
|
*/
|
|
pid_status_s vvtStatus[CAM_INPUTS_COUNT];
|
|
/**
|
|
* Aux speed 1
|
|
* units: s
|
|
* offset 520
|
|
*/
|
|
uint16_t auxSpeed1 = (uint16_t)0;
|
|
/**
|
|
* Aux speed 2
|
|
* units: s
|
|
* offset 522
|
|
*/
|
|
uint16_t auxSpeed2 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_ISS@@
|
|
* units: RPM
|
|
* offset 524
|
|
*/
|
|
uint16_t ISSValue = (uint16_t)0;
|
|
/**
|
|
* units: V
|
|
* offset 526
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawAnalogInput[LUA_ANALOG_INPUT_COUNT];
|
|
/**
|
|
* GPPWM Output
|
|
* units: %
|
|
* offset 542
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> gppwmOutput[4];
|
|
/**
|
|
* offset 546
|
|
*/
|
|
scaled_channel<int16_t, 1, 1> gppwmXAxis[4];
|
|
/**
|
|
* offset 554
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> gppwmYAxis[4];
|
|
/**
|
|
* units: V
|
|
* offset 562
|
|
*/
|
|
scaled_channel<int16_t, 1000, 1> rawBattery = (int16_t)0;
|
|
/**
|
|
* offset 564
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> ignBlendParameter[IGN_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 572
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> ignBlendBias[IGN_BLEND_COUNT];
|
|
/**
|
|
* units: deg
|
|
* offset 576
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> ignBlendOutput[IGN_BLEND_COUNT];
|
|
/**
|
|
* offset 584
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> veBlendParameter[VE_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 592
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> veBlendBias[VE_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 596
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> veBlendOutput[VE_BLEND_COUNT];
|
|
/**
|
|
* offset 604
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> boostOpenLoopBlendParameter[BOOST_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 608
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> boostOpenLoopBlendBias[BOOST_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 610
|
|
*/
|
|
scaled_channel<int8_t, 1, 1> boostOpenLoopBlendOutput[BOOST_BLEND_COUNT];
|
|
/**
|
|
* offset 612
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> boostClosedLoopBlendParameter[BOOST_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 616
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> boostClosedLoopBlendBias[BOOST_BLEND_COUNT];
|
|
/**
|
|
* units: %
|
|
* offset 618
|
|
*/
|
|
scaled_channel<int16_t, 10, 1> boostClosedLoopBlendOutput[BOOST_BLEND_COUNT];
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 622
|
|
*/
|
|
uint8_t alignmentFill_at_622[2];
|
|
/**
|
|
offset 624 bit 0 */
|
|
bool coilState1 : 1 {};
|
|
/**
|
|
offset 624 bit 1 */
|
|
bool coilState2 : 1 {};
|
|
/**
|
|
offset 624 bit 2 */
|
|
bool coilState3 : 1 {};
|
|
/**
|
|
offset 624 bit 3 */
|
|
bool coilState4 : 1 {};
|
|
/**
|
|
offset 624 bit 4 */
|
|
bool coilState5 : 1 {};
|
|
/**
|
|
offset 624 bit 5 */
|
|
bool coilState6 : 1 {};
|
|
/**
|
|
offset 624 bit 6 */
|
|
bool coilState7 : 1 {};
|
|
/**
|
|
offset 624 bit 7 */
|
|
bool coilState8 : 1 {};
|
|
/**
|
|
offset 624 bit 8 */
|
|
bool coilState9 : 1 {};
|
|
/**
|
|
offset 624 bit 9 */
|
|
bool coilState10 : 1 {};
|
|
/**
|
|
offset 624 bit 10 */
|
|
bool coilState11 : 1 {};
|
|
/**
|
|
offset 624 bit 11 */
|
|
bool coilState12 : 1 {};
|
|
/**
|
|
offset 624 bit 12 */
|
|
bool injectorState1 : 1 {};
|
|
/**
|
|
offset 624 bit 13 */
|
|
bool injectorState2 : 1 {};
|
|
/**
|
|
offset 624 bit 14 */
|
|
bool injectorState3 : 1 {};
|
|
/**
|
|
offset 624 bit 15 */
|
|
bool injectorState4 : 1 {};
|
|
/**
|
|
offset 624 bit 16 */
|
|
bool injectorState5 : 1 {};
|
|
/**
|
|
offset 624 bit 17 */
|
|
bool injectorState6 : 1 {};
|
|
/**
|
|
offset 624 bit 18 */
|
|
bool injectorState7 : 1 {};
|
|
/**
|
|
offset 624 bit 19 */
|
|
bool injectorState8 : 1 {};
|
|
/**
|
|
offset 624 bit 20 */
|
|
bool injectorState9 : 1 {};
|
|
/**
|
|
offset 624 bit 21 */
|
|
bool injectorState10 : 1 {};
|
|
/**
|
|
offset 624 bit 22 */
|
|
bool injectorState11 : 1 {};
|
|
/**
|
|
offset 624 bit 23 */
|
|
bool injectorState12 : 1 {};
|
|
/**
|
|
offset 624 bit 24 */
|
|
bool triggerChannel1 : 1 {};
|
|
/**
|
|
offset 624 bit 25 */
|
|
bool triggerChannel2 : 1 {};
|
|
/**
|
|
* bank 1 intake cam input
|
|
offset 624 bit 26 */
|
|
bool vvtChannel1 : 1 {};
|
|
/**
|
|
* bank 1 exhaust cam input
|
|
offset 624 bit 27 */
|
|
bool vvtChannel2 : 1 {};
|
|
/**
|
|
* bank 2 intake cam input
|
|
offset 624 bit 28 */
|
|
bool vvtChannel3 : 1 {};
|
|
/**
|
|
* bank 2 exhaust cam input
|
|
offset 624 bit 29 */
|
|
bool vvtChannel4 : 1 {};
|
|
/**
|
|
offset 624 bit 30 */
|
|
bool unusedBit_230_30 : 1 {};
|
|
/**
|
|
offset 624 bit 31 */
|
|
bool unusedBit_230_31 : 1 {};
|
|
/**
|
|
* offset 628
|
|
*/
|
|
uint32_t outputRequestPeriod = (uint32_t)0;
|
|
/**
|
|
* offset 632
|
|
*/
|
|
float mapFast = (float)0;
|
|
/**
|
|
* Lua: Gauge
|
|
* units: value
|
|
* offset 636
|
|
*/
|
|
float luaGauges[LUA_GAUGE_COUNT];
|
|
/**
|
|
* units: V
|
|
* offset 644
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> rawMaf2 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AIR_FLOW_MEASURED_2@@
|
|
* units: kg/h
|
|
* offset 646
|
|
*/
|
|
scaled_channel<uint16_t, 10, 1> mafMeasured2 = (uint16_t)0;
|
|
/**
|
|
* offset 648
|
|
*/
|
|
uint16_t schedulingUsedCount = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_VVS@@
|
|
* units: kph
|
|
* offset 650
|
|
*/
|
|
scaled_channel<uint16_t, 100, 1> vehicleSpeedKph = (uint16_t)0;
|
|
/**
|
|
* units: %
|
|
* offset 652
|
|
*/
|
|
scaled_channel<uint16_t, 100, 1> Gego = (uint16_t)0;
|
|
/**
|
|
* units: count
|
|
* offset 654
|
|
*/
|
|
uint16_t testBenchIter = (uint16_t)0;
|
|
/**
|
|
* units: deg C
|
|
* offset 656
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> oilTemp = (int16_t)0;
|
|
/**
|
|
* units: deg C
|
|
* offset 658
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> fuelTemp = (int16_t)0;
|
|
/**
|
|
* units: deg C
|
|
* offset 660
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> ambientTemp = (int16_t)0;
|
|
/**
|
|
* units: deg C
|
|
* offset 662
|
|
*/
|
|
scaled_channel<int16_t, 100, 1> compressorDischargeTemp = (int16_t)0;
|
|
/**
|
|
* units: kPa
|
|
* offset 664
|
|
*/
|
|
scaled_channel<uint16_t, 30, 1> compressorDischargePressure = (uint16_t)0;
|
|
/**
|
|
* units: kPa
|
|
* offset 666
|
|
*/
|
|
scaled_channel<uint16_t, 30, 1> throttleInletPressure = (uint16_t)0;
|
|
/**
|
|
* units: sec
|
|
* offset 668
|
|
*/
|
|
uint16_t ignitionOnTime = (uint16_t)0;
|
|
/**
|
|
* units: sec
|
|
* offset 670
|
|
*/
|
|
uint16_t engineRunTime = (uint16_t)0;
|
|
/**
|
|
* units: km
|
|
* offset 672
|
|
*/
|
|
scaled_channel<uint16_t, 10, 1> distanceTraveled = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AFR_GAS_SCALE@@
|
|
* units: AFR
|
|
* offset 674
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> afrGasolineScale = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_AFR2_GAS_SCALE@@
|
|
* units: AFR
|
|
* offset 676
|
|
*/
|
|
scaled_channel<uint16_t, 1000, 1> afr2GasolineScale = (uint16_t)0;
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 678
|
|
*/
|
|
uint8_t alignmentFill_at_678[2];
|
|
/**
|
|
* offset 680
|
|
*/
|
|
float wheelSlipRatio = (float)0;
|
|
/**
|
|
* offset 684
|
|
*/
|
|
uint8_t ignitorDiagnostic[MAX_CYLINDER_COUNT];
|
|
/**
|
|
* offset 696
|
|
*/
|
|
uint8_t injectorDiagnostic[MAX_CYLINDER_COUNT];
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_LAST_INJECTION_STAGE_2@@
|
|
* units: ms
|
|
* offset 708
|
|
*/
|
|
scaled_channel<uint16_t, 300, 1> actualLastInjectionStage2 = (uint16_t)0;
|
|
/**
|
|
* @@GAUGE_NAME_FUEL_INJ_DUTY_STAGE_2@@
|
|
* units: %
|
|
* offset 710
|
|
*/
|
|
scaled_channel<uint8_t, 2, 1> injectorDutyCycleStage2 = (uint8_t)0;
|
|
/**
|
|
* offset 711
|
|
*/
|
|
uint8_t unusedAtTheEnd[88];
|
|
/**
|
|
* need 4 byte alignment
|
|
* units: units
|
|
* offset 799
|
|
*/
|
|
uint8_t alignmentFill_at_799[1];
|
|
};
|
|
static_assert(sizeof(output_channels_s) == 800);
|
|
|
|
// end
|
|
// this section was generated automatically by rusEFI tool config_definition_base-all.jar based on (unknown script) console/binary/output_channels.txt Thu Mar 14 17:15:34 UTC 2024
|