2019-06-17 09:18:55 -07:00
|
|
|
|
2019-07-21 14:06:16 -07:00
|
|
|
struct_no_prefix pid_state_s
|
|
|
|
float iTerm;
|
|
|
|
float dTerm;we are remembering this only for debugging purposes
|
|
|
|
float target;only used for logging
|
|
|
|
float input;only used for logging
|
|
|
|
float output;only used for logging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end_struct
|
|
|
|
|
|
|
|
struct_no_prefix idle_state_s
|
|
|
|
idle_state_e idleState
|
|
|
|
percent_t currentIdlePosition;that's current position with CLT and IAT corrections
|
|
|
|
percent_t baseIdlePosition;current position without adjustments (iacByTpsTaper, afterCrankingIACtaperDuration)
|
|
|
|
int throttleUpState
|
|
|
|
|
|
|
|
end_struct
|
2019-06-17 09:18:55 -07:00
|
|
|
|
|
|
|
struct_no_prefix engine_state2_s
|
|
|
|
|
2019-06-19 19:34:11 -07:00
|
|
|
struct_no_prefix speed_density_s
|
2019-06-17 09:18:55 -07:00
|
|
|
|
|
|
|
bit isTChargeAirModel
|
|
|
|
|
2019-06-19 19:34:11 -07:00
|
|
|
float airMassInOneCylinder;Speed-density logic: calculated air mass in one cylinder, in grams
|
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
|
|
|
|
|
|
|
float Tcharge_coff
|
|
|
|
|
|
|
|
floatms_t airFlow
|
|
|
|
|
2019-06-19 19:34:11 -07:00
|
|
|
|
|
|
|
float manifoldAirPressureAccelerationAdjustment;
|
|
|
|
float adjustedManifoldAirPressure;
|
|
|
|
|
|
|
|
|
|
|
|
! speed_density_s
|
|
|
|
end_struct
|
|
|
|
|
|
|
|
speed_density_s sd;
|
|
|
|
|
2019-07-21 14:06:16 -07:00
|
|
|
|
|
|
|
idle_state_s idle;
|
|
|
|
|
2019-06-19 19:34:11 -07:00
|
|
|
float targetAFR
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
! engine_state2_s
|
2019-06-17 09:18:55 -07:00
|
|
|
end_struct
|