rusefi/firmware/controllers/algo/engine_state.txt

105 lines
2.7 KiB
Plaintext
Raw Normal View History

struct_no_prefix engine_state_s
struct LuaAdjustments
float fuelAdd
float fuelMult
bit clutchUpState
bit brakePedalState
2022-07-07 21:25:29 -07:00
bit acRequestState
end_struct
LuaAdjustments lua
2022-04-17 19:48:57 -07:00
struct speed_density_s
bit isTChargeAirModel
float airMassInOneCylinder;Speed-density logic: calculated air mass in one cylinder, in grams
float tCharge;speed density\nRate-of-change limiter is applied to degrees, so we store both Kelvin and degrees.;
float tChargeK
float Tcharge_coff
floatms_t airFlow
! speed_density_s
end_struct
speed_density_s sd;
2019-07-21 14:06:16 -07:00
float targetAFR
float engineCycleDurationMs;
float minRpmKcurrentTPS
2019-06-17 18:37:11 -07:00
int currentTpsAdc
float tpsVoltageMCU
float tpsVoltageBoard
float currentBaroCorrectedVE;
float injectorFlowCorrection;
2019-08-26 20:41:04 -07:00
float baroCorrection;
struct cranking_fuel_s
floatms_t baseFuel;Duration of injection, in ms. During cranking we do not account for injector flow, so if you change injectors you would need to change settings.\nDeprecated. Please use '1'.\nTODO: maybe account for injector flow?
float coolantTemperatureCoefficient;
float tpsCoefficient
float durationCoefficient
floatms_t fuel;Actual injection duration based on all above coefficients.
! end of cranking_s structure definition
end_struct
! actually define a member of 'cranking_s' type
cranking_fuel_s cranking
struct running_fuel_s
float postCrankingFuelCorrection
float intakeTemperatureCoefficient
float coolantTemperatureCoefficient
float timeSinceCrankingInSecs
floatms_t injectorLag;injectorLag(VBatt)\nthis value depends on a slow-changing VBatt value, so\nwe update it once in a while
floatms_t baseFuel;
2019-08-26 20:41:04 -07:00
floatms_t fuel;Actual injection duration with CLT, IAT and TPS acceleration corrections per cycle, as squirt duration.\nWithout injector lag.\n@see baseFuel\n@see actualLastInjection
! end of running_fuel_s structure definition
end_struct
! actually define a member of 'running_fuel_s' type
running_fuel_s running
custom percent_t 4 scalar, F32, @OFFSET@, "", 1, 0, 0, 100, 2
! spark-related
floatms_t sparkDwell;ignition dwell duration in ms\nSee also dwellAngle
angle_t dwellAngle;ignition dwell duration as crankshaft angle\nNAN if engine is stopped\nSee also sparkDwell
int16_t autoscale cltTimingCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
int16_t autoscale timingIatCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
int16_t autoscale timingPidCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
bit clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
bit clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
bit brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@
! engine_state2_s
end_struct