rusefi/firmware/controllers/algo/engine_state.txt

79 lines
2.3 KiB
Plaintext
Raw Normal View History

struct_no_prefix engine_state_s
struct LuaAdjustments
float fuelAdd;Lua: Fuel add;"g", 1, 0, 0, 1, 3
float fuelMult;Lua: Fuel mult;
bit clutchUpState
bit brakePedalState
bit acRequestState
bit luaDisableEtb
bit luaIgnCut
2024-07-25 05:27:40 -07:00
bit luaFuelCut
bit clutchDownState
2024-07-03 17:48:49 -07:00
bit disableDecelerationFuelCutOff
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
custom percent_t 4 scalar, F32, @OFFSET@, "", 1, 0, 0, 100, 2
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
! huh: why exactly are those byte states not bit states?!
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
bit startStopPhysicalState
bit acrActive;Harley ACR Active
2023-11-13 14:23:32 -08:00
bit acrEngineMovedRecently
! 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
uint32_t startStopStateToggleCounter
2022-08-23 19:54:48 -07:00
float luaSoftSparkSkip
float luaHardSparkSkip
float tractionControlSparkSkip
int16_t desiredRpmLimit;User-defined RPM hard limit;"rpm", 1, 0, 0, 30000, 0
uint32_t fuelInjectionCounter;Fuel: Injection counter
2024-02-28 21:29:48 -08:00
uint32_t globalSparkCounter;Ign: Spark counter
! 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@@
uint16_t autoscale veTableYAxis;;"%",{1/100}, 0, 0, 0, 0
uint8_t overDwellCounter
uint8_t overDwellNotScheduledCounter
uint8_t sparkOutOfOrderCounter
! engine_state_s
end_struct