92 lines
2.1 KiB
Plaintext
92 lines
2.1 KiB
Plaintext
|
|
|
|
struct_no_prefix engine_state_s
|
|
|
|
struct LuaAdjustments
|
|
float fuelAdd
|
|
float fuelMult
|
|
|
|
bit clutchUpState
|
|
bit brakePedalState
|
|
bit acRequestState
|
|
bit luaDisableEtb
|
|
bit luaIgnCut
|
|
|
|
end_struct
|
|
|
|
LuaAdjustments lua
|
|
|
|
|
|
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
|
|
float tpsVoltageMCU
|
|
float tpsVoltageBoard
|
|
|
|
float currentBaroCorrectedVE;
|
|
float injectorFlowCorrection;
|
|
float baroCorrection;@@GAUGE_NAME_FUEL_BARO_CORR@@
|
|
|
|
|
|
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?
|
|
float coolantTemperatureCoefficient;Cranking: CLT coefficient
|
|
float tpsCoefficient
|
|
float durationCoefficient
|
|
floatms_t fuel;Fuel: Actual injection\nduration based on all coefficients.
|
|
|
|
! end of cranking_s structure definition
|
|
end_struct
|
|
|
|
! actually define a member of 'cranking_s' type
|
|
cranking_fuel_s crankingFuel
|
|
|
|
|
|
custom percent_t 4 scalar, F32, @OFFSET@, "", 1, 0, 0, 100, 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@@
|
|
bit startStopState
|
|
uint32_t startStopStateToggleCounter
|
|
|
|
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
|