2019-06-17 09:18:55 -07:00
2022-04-13 17:45:52 -07:00
struct_no_prefix engine_state_s
2019-06-17 09:18:55 -07:00
2022-06-29 20:34:00 -07:00
struct LuaAdjustments
float fuelAdd
2022-06-30 10:38:15 -07:00
float fuelMult
2022-06-29 20:34:00 -07:00
bit clutchUpState
bit brakePedalState
2022-07-07 21:25:29 -07:00
bit acRequestState
2022-06-29 20:34:00 -07:00
end_struct
LuaAdjustments lua
2022-04-17 19:48:57 -07:00
struct speed_density_s
2019-06-17 09:18:55 -07:00
2019-06-19 19:34:11 -07:00
float tCharge;speed density\nRate-of-change limiter is applied to degrees, so we store both Kelvin and degrees.;
float tChargeK
2019-06-17 09:18:55 -07:00
floatms_t airFlow
2019-06-19 19:34:11 -07:00
! speed_density_s
end_struct
speed_density_s sd;
float engineCycleDurationMs;
2019-06-17 09:18:55 -07:00
float minRpmKcurrentTPS
2019-06-17 18:37:11 -07:00
int currentTpsAdc
float tpsVoltageMCU
float tpsVoltageBoard
2019-06-17 09:18:55 -07:00
2019-06-19 19:34:11 -07:00
float currentBaroCorrectedVE;
2019-09-24 15:39:26 -07:00
float injectorFlowCorrection;
2022-09-03 14:12:47 -07:00
float baroCorrection;@@GAUGE_NAME_FUEL_BARO_CORR@@
2019-08-26 20:41:04 -07:00
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
2022-09-03 14:12:47 -07:00
float intakeTemperatureCoefficient;@@GAUGE_NAME_FUEL_IAT_CORR@@
2022-09-03 14:29:35 -07:00
float coolantTemperatureCoefficient;@@GAUGE_NAME_FUEL_CLT_CORR@@
2019-08-26 20:41:04 -07:00
float timeSinceCrankingInSecs
2021-05-08 14:41:50 -07:00
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
2019-06-19 19:34:11 -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
2019-11-05 20:36:33 -08:00
! 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
2022-06-28 22:38:43 -07:00
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
2020-03-25 22:49:36 -07:00
2022-06-29 15:10:29 -07:00
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
2022-06-28 22:14:58 -07:00
2022-06-29 00:01:13 -07:00
bit clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
bit clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
bit brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@
2022-08-23 19:54:48 -07:00
2022-08-22 08:12:34 -07:00
float egt1
float egt2
2022-08-22 15:23:25 -07:00
int16_t desiredRpmLimit;User-defined RPM hard limit;"rpm", 1, 0, 0, 30000, 0
2022-08-25 15:38:43 -07:00
int fuelInjectionCounter
int sparkCounter
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@@
! engine_state_s
2019-06-17 09:18:55 -07:00
end_struct