2019-06-17 09:18:55 -07:00
|
|
|
|
2022-04-13 17:45:52 -07:00
|
|
|
struct_no_prefix engine_state_s
|
2023-05-05 02:09:42 -07:00
|
|
|
struct LuaAdjustments
|
|
|
|
float fuelAdd;Lua: Fuel add;"g", 1, 0, 0, 1, 3
|
|
|
|
float fuelMult;Lua: Fuel mult;
|
|
|
|
|
2023-08-22 11:26:47 -07:00
|
|
|
bit clutchUpState
|
|
|
|
bit brakePedalState
|
2023-05-05 02:09:42 -07:00
|
|
|
bit acRequestState
|
|
|
|
bit luaDisableEtb
|
|
|
|
bit luaIgnCut
|
2024-07-25 05:27:40 -07:00
|
|
|
bit luaFuelCut
|
2024-06-24 18:30:42 -07:00
|
|
|
bit clutchDownState
|
2024-07-03 17:48:49 -07:00
|
|
|
bit disableDecelerationFuelCutOff
|
2023-05-05 02:09:42 -07:00
|
|
|
end_struct
|
|
|
|
|
|
|
|
struct speed_density_s
|
|
|
|
int16_t autoscale tCharge;Air: Charge temperature estimate;"deg C",{1/@@PACK_MULT_TEMPERATURE@@}, 0, 0, 0, 1
|
|
|
|
float tChargeK;Air: Charge temperature estimate K
|
|
|
|
end_struct
|
|
|
|
|
|
|
|
struct cranking_fuel_s
|
|
|
|
float coolantTemperatureCoefficient;Fuel: cranking CLT mult
|
|
|
|
float tpsCoefficient;Fuel: cranking TPS mult
|
|
|
|
float durationCoefficient;Fuel: cranking duration mult
|
|
|
|
uint16_t autoscale fuel;Fuel: Cranking cycle mass;"mg",{1/@@PACK_MULT_FUEL_MASS@@}, 0, 0, 0, 2
|
|
|
|
end_struct
|
|
|
|
|
|
|
|
LuaAdjustments lua
|
|
|
|
speed_density_s sd;
|
|
|
|
cranking_fuel_s crankingFuel
|
|
|
|
|
|
|
|
float baroCorrection;@@GAUGE_NAME_FUEL_BARO_CORR@@
|
2019-08-26 20:41:04 -07:00
|
|
|
|
2022-06-19 06:52:23 -07:00
|
|
|
custom percent_t 4 scalar, F32, @OFFSET@, "", 1, 0, 0, 100, 2
|
2019-09-01 12:46:40 -07:00
|
|
|
|
2023-05-05 12:26:23 -07:00
|
|
|
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
|
2022-06-28 22:14:58 -07:00
|
|
|
|
2023-09-25 10:11:04 -07:00
|
|
|
! huh: why exactly are those byte states not bit states?!
|
2023-08-22 11:26:47 -07:00
|
|
|
int8_t clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
|
|
|
|
int8_t clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
|
|
|
|
int8_t brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@
|
|
|
|
int8_t startStopState
|
2023-12-20 21:27:25 -08:00
|
|
|
int8_t smartChipState
|
|
|
|
int8_t smartChipRestartCounter
|
2023-12-26 14:45:20 -08:00
|
|
|
int8_t smartChipAliveCounter
|
2023-09-25 10:11:04 -07:00
|
|
|
bit startStopPhysicalState
|
2024-03-04 18:25:07 -08:00
|
|
|
bit acrActive;Harley ACR Active
|
2023-11-13 14:23:32 -08:00
|
|
|
bit acrEngineMovedRecently
|
2023-11-15 13:26:45 -08:00
|
|
|
! same field is used for narrow band heater enable and wide band enable via CAN
|
|
|
|
bit heaterControlEnabled
|
2023-11-21 08:53:15 -08:00
|
|
|
bit luaDigitalState0
|
|
|
|
bit luaDigitalState1
|
|
|
|
bit luaDigitalState2
|
|
|
|
bit luaDigitalState3
|
2023-05-05 12:26:23 -07:00
|
|
|
uint32_t startStopStateToggleCounter
|
2022-08-23 19:54:48 -07:00
|
|
|
|
2024-03-04 17:54:55 -08:00
|
|
|
float luaSoftSparkSkip
|
|
|
|
float luaHardSparkSkip
|
|
|
|
float tractionControlSparkSkip
|
2022-08-22 08:12:34 -07:00
|
|
|
|
2023-05-05 12:26:23 -07:00
|
|
|
int16_t desiredRpmLimit;User-defined RPM hard limit;"rpm", 1, 0, 0, 30000, 0
|
2022-08-22 15:23:25 -07:00
|
|
|
|
2023-05-05 02:09:42 -07:00
|
|
|
uint32_t fuelInjectionCounter;Fuel: Injection counter
|
2024-02-28 21:29:48 -08:00
|
|
|
uint32_t globalSparkCounter;Ign: Spark counter
|
2022-09-04 19:38:05 -07:00
|
|
|
|
|
|
|
! Values used for load axes for fuel/ign tables
|
|
|
|
! These may or may not be the same value, depending on mode
|
|
|
|
float fuelingLoad;@@GAUGE_NAME_FUEL_LOAD@@
|
|
|
|
float ignitionLoad;@@GAUGE_NAME_IGNITION_LOAD@@
|
|
|
|
|
2022-11-05 17:23:09 -07:00
|
|
|
uint16_t autoscale veTableYAxis;;"%",{1/100}, 0, 0, 0, 0
|
2024-04-09 21:28:19 -07:00
|
|
|
uint8_t overDwellCounter
|
|
|
|
uint8_t overDwellNotScheduledCounter
|
2024-04-17 15:32:40 -07:00
|
|
|
uint8_t sparkOutOfOrderCounter
|
2022-09-04 19:38:05 -07:00
|
|
|
|
|
|
|
! engine_state_s
|
2019-06-17 09:18:55 -07:00
|
|
|
end_struct
|