fome-fw/firmware/controllers/algo/engine_state.txt

113 lines
3.0 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
2022-11-15 06:29:13 -08:00
bit luaDisableEtb
end_struct
LuaAdjustments lua
2022-04-17 19:48:57 -07:00
struct speed_density_s
float tCharge;speed density\nRate-of-change limiter is applied to degrees, so we store both Kelvin and degrees.;
float tChargeK
floatms_t airFlow
! speed_density_s
end_struct
speed_density_s sd;
float engineCycleDurationMs;
float minRpmKcurrentTPS
uint32_t currentTpsAdc
2019-06-17 18:37:11 -07:00
float tpsVoltageMCU
float tpsVoltageBoard
float currentBaroCorrectedVE;
float injectorFlowCorrection;
float baroCorrection;@@GAUGE_NAME_FUEL_BARO_CORR@@
2019-08-26 20:41:04 -07:00
struct cranking_fuel_s
floatms_t baseFuel;Fuel: base duration\nDuration 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?
2019-08-26 20:41:04 -07:00
float coolantTemperatureCoefficient;
float tpsCoefficient
float durationCoefficient
floatms_t fuel;Fuel: Actual injection\nduration based on all coefficients.
2019-08-26 20:41:04 -07:00
! end of cranking_s structure definition
end_struct
! actually define a member of 'cranking_s' type
cranking_fuel_s crankingFuel
2019-08-26 20:41:04 -07:00
struct running_fuel_s
float postCrankingFuelCorrection
float intakeTemperatureCoefficient;@@GAUGE_NAME_FUEL_IAT_CORR@@
float coolantTemperatureCoefficient;@@GAUGE_NAME_FUEL_CLT_CORR@@
2019-08-26 20:41:04 -07:00
float timeSinceCrankingInSecs
floatms_t baseFuel;
floatms_t fuel;Fuel: actual\nActual injection duration with CLT, IAT and TPS acceleration corrections per cycle, as squirt duration.\nWithout injector lag.\n@see baseFuel\n@see actualLastInjection
2019-08-26 20:41:04 -07:00
! 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\nas 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@@
2022-10-06 16:17:47 -07:00
bit startStopState
uint32_t startStopStateToggleCounter
2022-08-23 19:54:48 -07:00
float egtValue1
float egtValue2
int16_t desiredRpmLimit;User-defined RPM hard limit;"rpm", 1, 0, 0, 30000, 0
uint32_t fuelInjectionCounter
uint32_t sparkCounter
! 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
! engine_state_s
end_struct