2023-03-02 11:52:36 -08:00
|
|
|
! These definitions are shared between both output channels/live data and config layout
|
|
|
|
|
|
|
|
#define PACK_MULT_PRESSURE 30
|
|
|
|
#define PACK_MULT_HIGH_PRESSURE 10
|
|
|
|
#define PACK_MULT_PERCENT 100
|
|
|
|
#define PACK_MULT_TEMPERATURE 100
|
|
|
|
#define PACK_ADD_TEMPERATURE 40
|
|
|
|
#define PACK_MULT_MS 300
|
|
|
|
#define PACK_MULT_AFR 1000
|
|
|
|
#define PACK_MULT_LAMBDA 10000
|
|
|
|
#define PACK_MULT_ANGLE 50
|
|
|
|
#define PACK_MULT_VOLTAGE 1000
|
|
|
|
#define PACK_MULT_MASS_FLOW 10
|
|
|
|
#define TPS_2_BYTE_PACKING_MULT 100
|
|
|
|
#define PACK_MULT_AFR_CFG 10
|
|
|
|
#define PACK_MULT_LAMBDA_CFG 147
|
|
|
|
#define PACK_MULT_FUEL_MASS 100
|
|
|
|
#define PACK_PERCENT_BYTE_MULT 100.0
|
|
|
|
#define PACK_MULT_FUEL_FLOW 200
|
2023-04-29 09:46:12 -07:00
|
|
|
#define PACK_MULT_VSS 100
|
2023-03-02 11:52:36 -08:00
|
|
|
|
|
|
|
#define GEARS_COUNT 8
|
|
|
|
#define EGT_CHANNEL_COUNT 8
|
|
|
|
|
2023-04-29 09:58:47 -07:00
|
|
|
#define MAX_CYLINDER_COUNT 12
|
|
|
|
|
2023-03-02 11:52:36 -08:00
|
|
|
! V engines or flat engines would have pairs of shafts with same trigger shape and target position
|
|
|
|
#define BANKS_COUNT 2
|
|
|
|
#define CAMS_PER_BANK 2
|
|
|
|
|
|
|
|
#define CAM_INPUTS_COUNT @@BANKS_COUNT@@*@@CAMS_PER_BANK@@
|
|
|
|
|
|
|
|
#define LUA_ANALOG_INPUT_COUNT 8
|
|
|
|
#define IGN_BLEND_COUNT 4
|
|
|
|
#define VE_BLEND_COUNT 4
|
2023-05-03 11:04:40 -07:00
|
|
|
#define BOOST_BLEND_COUNT 2
|
2023-03-02 11:52:36 -08:00
|
|
|
#define LUA_GAUGE_COUNT 2
|
|
|
|
|
|
|
|
|
|
|
|
#define GAUGE_NAME_VERSION "firmware"
|
|
|
|
#define GAUGE_NAME_UPTIME "Uptime"
|
|
|
|
#define GAUGE_NAME_TRG_ERR "Trigger Error Counter"
|
|
|
|
#define GAUGE_NAME_TRG_GAP "Trigger Sync Latest Ratio"
|
2023-04-29 11:15:41 -07:00
|
|
|
#define GAUGE_NAME_ADJUSTED_TIMING "Timing: ignition"
|
2023-03-02 11:52:36 -08:00
|
|
|
|
|
|
|
#define GAUGE_CATEGORY_TIMING "Timing"
|
2023-04-29 08:35:21 -07:00
|
|
|
#define GAUGE_CATEGORY_SYNC "Sync"
|
2023-03-02 11:52:36 -08:00
|
|
|
#define GAUGE_CATEGORY_FUEL_MATH "Fuel: math"
|
|
|
|
#define GAUGE_CATEGORY_BOOST_CONTROL "Boost Control"
|
|
|
|
#define GAUGE_CATEGORY_ETB "ETB more"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_VVT_B1I "VVT: bank 1 intake"
|
|
|
|
#define GAUGE_NAME_VVT_B1E "VVT: bank 1 exhaust"
|
|
|
|
#define GAUGE_NAME_VVT_B2I "VVT: bank 2 intake"
|
|
|
|
#define GAUGE_NAME_VVT_B2E "VVT: bank 2 exhaust"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_VVT_TARGET_B1I "VVT: bank 1 intake target"
|
|
|
|
#define GAUGE_NAME_VVT_TARGET_B1E "VVT: bank 1 exhaust target"
|
|
|
|
#define GAUGE_NAME_VVT_TARGET_B2I "VVT: bank 2 intake target"
|
|
|
|
#define GAUGE_NAME_VVT_TARGET_B2E "VVT: bank 2 exhaust target"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_DESIRED_GEAR "Desired Gear"
|
|
|
|
#define GAUGE_NAME_CURRENT_GEAR "Current Gear"
|
|
|
|
#define GAUGE_NAME_ISS "Input Shaft Speed"
|
|
|
|
#define GAUGE_NAME_TC_RATIO "Torque Converter Ratio"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_VVS "Vehicle Speed"
|
|
|
|
#define GAUGE_NAME_GEAR_RATIO "Gearbox Ratio"
|
|
|
|
#define GAUGE_NAME_DETECTED_GEAR "Detected Gear"
|
|
|
|
#define GAUGE_NAME_TURBO_SPEED "Turbocharger Speed"
|
|
|
|
#define GAUGE_NAME_VBAT "VBatt"
|
|
|
|
#define GAUGE_NAME_TIME "Time"
|
|
|
|
#define GAUGE_NAME_RPM "RPM"
|
|
|
|
#define GAUGE_NAME_CLT "CLT"
|
|
|
|
#define GAUGE_NAME_IAT "IAT"
|
|
|
|
#define GAUGE_NAME_AUX_TEMP1 "Aux temp 1"
|
|
|
|
#define GAUGE_NAME_AUX_TEMP2 "Aux temp 2"
|
|
|
|
#define GAUGE_NAME_TPS "TPS"
|
|
|
|
#define GAUGE_NAME_TPS2 "TPS2"
|
|
|
|
#define GAUGE_NAME_MAP "MAP"
|
|
|
|
#define GAUGE_NAME_MAF "MAF"
|
|
|
|
#define GAUGE_NAME_CPU_TEMP "CPU Temperature"
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_ETB_TARGET "ETB: position target"
|
2023-03-02 11:52:36 -08:00
|
|
|
#define GAUGE_NAME_WG_POSITION "Wastegate position sensor"
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_ETB_ERROR "ETB: position error"
|
|
|
|
#define GAUGE_NAME_ETB_DUTY "ETB: Duty"
|
2023-03-02 11:52:36 -08:00
|
|
|
#define GAUGE_NAME_IDLE_POSITION "Idle position sensor"
|
|
|
|
#define GAUGE_NAME_WARNING_COUNT "Warning count"
|
|
|
|
#define GAUGE_NAME_LAST_ERROR "Last error"
|
|
|
|
#define GAUGE_NAME_TUNE_CRC16 "Tune CRC16"
|
|
|
|
#define GAUGE_NAME_ENGINE_CRC16 "Engine CRC16"
|
|
|
|
#define GAUGE_NAME_FW_VERSION "ECU Software Version"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_RAW_FUEL_PRESSURE_LOW "Fuel pressure raw (low)"
|
|
|
|
#define GAUGE_NAME_FUEL_PRESSURE_LOW "Fuel pressure (low)"
|
|
|
|
#define GAUGE_NAME_FUEL_PRESSURE_LOW_UNITS "kPa"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_RAW_FUEL_PRESSURE_HIGH "Fuel pressure raw (high)"
|
|
|
|
#define GAUGE_NAME_FUEL_PRESSURE_HIGH "Fuel pressure (high)"
|
|
|
|
#define GAUGE_NAME_FUEL_PRESSURE_HIGH_UNITS "bar"
|
|
|
|
#define GAUGE_NAME_FLEX "Flex Ethanol %"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_ACCEL_X "Acceleration: X"
|
|
|
|
#define GAUGE_NAME_ACCEL_Y "Acceleration: Y"
|
|
|
|
#define GAUGE_NAME_ACCEL_Z "Acceleration: Z"
|
|
|
|
#define GAUGE_NAME_ACCEL_ROLL "Acceleration: Roll"
|
|
|
|
#define GAUGE_NAME_ACCEL_YAW "Acceleration: Yaw"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_BARO_PRESSURE "Barometric pressure"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_OIL_PRESSURE "Oil Pressure"
|
|
|
|
#define GAUGE_NAME_OIL_PRESSURE_UNITS "kPa"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_ECU_TEMPERATURE "ECU temperature"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_AUX_LINEAR_1 "Aux Linear #1"
|
|
|
|
#define GAUGE_NAME_AUX_LINEAR_2 "Aux Linear #2"
|
|
|
|
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_BOOST_OUTPUT "Boost: Output"
|
|
|
|
#define GAUGE_NAME_BOOST_CLOSED_LOOP "Boost: Closed Loop"
|
|
|
|
#define GAUGE_NAME_BOOST_OPEN_LOOP "Boost: Open Loop"
|
|
|
|
#define GAUGE_NAME_BOOST_TARGET "Boost: Target"
|
2023-03-02 11:52:36 -08:00
|
|
|
|
2023-05-04 13:01:35 -07:00
|
|
|
#define INDICATOR_NAME_CLUTCH_UP "Clutch: up"
|
|
|
|
#define INDICATOR_NAME_CLUTCH_DOWN "Clutch: down"
|
|
|
|
#define INDICATOR_NAME_BRAKE_DOWN "Brake switch"
|
2023-03-02 11:52:36 -08:00
|
|
|
#define INDICATOR_NAME_AC_SWITCH "AC switch"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_AIR_FLOW_MEASURED "MAF"
|
|
|
|
#define GAUGE_NAME_AIR_FLOW_MEASURED_2 "MAF #2"
|
|
|
|
#define GAUGE_NAME_AIR_FLOW_ESTIMATE "MAF estimate"
|
|
|
|
#define GAUGE_NAME_AIR_MASS "air mass"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_WARNING_LAST "warning: last"
|
|
|
|
#define GAUGE_NAME_WARNING_COUNTER "warning: counter"
|
|
|
|
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_FUEL_LEVEL "Fuel level"
|
|
|
|
#define GAUGE_NAME_KNOCK_LEVEL "Knock: Current level"
|
|
|
|
#define GAUGE_NAME_KNOCK_COUNTER "Knock: Count"
|
|
|
|
#define GAUGE_NAME_KNOCK_RETARD "Knock: Retard"
|
|
|
|
|
2023-05-04 13:15:50 -07:00
|
|
|
#define GAUGE_NAME_INJECTION_MODE "Fuel: Injection mode"
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_FUEL_BARO_CORR "Fuel: Barometric pressure mult"
|
2023-03-02 11:52:36 -08:00
|
|
|
#define GAUGE_NAME_THROTTLE_PEDAL "Throttle pedal position"
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_INJECTOR_LAG "Fuel: injector lag"
|
2023-05-04 13:15:50 -07:00
|
|
|
#define GAUGE_NAME_FUEL_TPS_ROC "Fuel: TPS AE change"
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_FUEL_CHARGE_TEMP "Fuel: Estimated charge temperature"
|
2023-05-04 13:15:50 -07:00
|
|
|
#define GAUGE_NAME_FUEL_TPS_EXTRA "Fuel: TPS AE add fuel ms"
|
2023-05-04 13:01:35 -07:00
|
|
|
#define GAUGE_NAME_FUEL_CLT_CORR "Fuel: CLT correction"
|
|
|
|
#define GAUGE_NAME_FUEL_IAT_CORR "Fuel: IAT correction"
|
|
|
|
#define GAUGE_NAME_FUEL_VE "Fuel: VE"
|
|
|
|
#define GAUGE_NAME_FUEL_CRANKING "Fuel: cranking"
|
|
|
|
#define GAUGE_NAME_FUEL_RUNNING "Fuel: running"
|
|
|
|
#define GAUGE_NAME_FUEL_LAST_INJECTION "Fuel: Last inj pulse width"
|
|
|
|
#define GAUGE_NAME_FUEL_BASE "Fuel: base mass"
|
|
|
|
#define GAUGE_NAME_FUEL_TRIM "Fuel: fuel trim"
|
|
|
|
#define GAUGE_NAME_FUEL_TRIM_2 "Fuel: fuel trim 2"
|
|
|
|
#define GAUGE_NAME_FUEL_WALL_AMOUNT "Fuel: wall amount"
|
|
|
|
#define GAUGE_NAME_FUEL_WALL_CORRECTION "Fuel: wall correction"
|
|
|
|
#define GAUGE_NAME_FUEL_LOAD "Fuel: load"
|
|
|
|
#define GAUGE_NAME_FUEL_CONSUMPTION "Fuel: Total consumed"
|
|
|
|
#define GAUGE_NAME_FUEL_FLOW "Fuel: Flow rate"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_FUEL_INJ_DUTY "Fuel: injector duty cycle"
|
|
|
|
#define GAUGE_NAME_TCHARGE "Fuel: SD tCharge"
|
|
|
|
#define GAUGE_NAME_TARGET_AFR "Fuel: target AFR"
|
|
|
|
#define GAUGE_NAME_TARGET_LAMBDA "Fuel: target lambda"
|
|
|
|
#define GAUGE_NAME_FUEL_INJECTION_TIMING "Fuel: Injection timing SOI"
|
2023-03-02 11:52:36 -08:00
|
|
|
#define GAUGE_NAME_AFR "Air/Fuel Ratio"
|
|
|
|
#define GAUGE_NAME_AFR2 "Air/Fuel Ratio 2"
|
|
|
|
#define GAUGE_NAME_LAMBDA "Lambda"
|
|
|
|
#define GAUGE_NAME_LAMBDA2 "Lambda 2"
|
2023-05-04 13:15:50 -07:00
|
|
|
#define GAUGE_NAME_IAC "Idle: Position"
|
2023-03-02 11:52:36 -08:00
|
|
|
|
2023-05-04 13:15:50 -07:00
|
|
|
#define GAUGE_NAME_TIMING_ADVANCE "Ign: Timing"
|
|
|
|
#define GAUGE_NAME_DWELL_DUTY "Ign: Coil duty cycle"
|
|
|
|
#define GAUGE_COIL_DWELL_TIME "Ign: Dwell"
|
|
|
|
#define GAUGE_NAME_IGNITION_LOAD "Ign: Load"
|
|
|
|
#define GAUGE_NAME_IGNITION_MODE "Ign: Mode"
|
2023-03-02 11:52:36 -08:00
|
|
|
|
|
|
|
#define GAUGE_NAME_DEBUG_F1 "debug f1"
|
|
|
|
#define GAUGE_NAME_DEBUG_F2 "debug f2: iTerm"
|
|
|
|
#define GAUGE_NAME_DEBUG_F3 "debug f3: prevError"
|
|
|
|
#define GAUGE_NAME_DEBUG_F4 "debug f4: iParam"
|
|
|
|
#define GAUGE_NAME_DEBUG_F5 "debug f5: dParam"
|
|
|
|
#define GAUGE_NAME_DEBUG_F6 "debug f6: dTerm"
|
|
|
|
#define GAUGE_NAME_DEBUG_F7 "debug f7"
|
|
|
|
|
|
|
|
#define GAUGE_NAME_DEBUG_I1 "debug i1: pParam"
|
|
|
|
#define GAUGE_NAME_DEBUG_I2 "debug i2: offset"
|
|
|
|
#define GAUGE_NAME_DEBUG_I3 "debug i3"
|
|
|
|
#define GAUGE_NAME_DEBUG_I4 "debug i4"
|
|
|
|
#define GAUGE_NAME_DEBUG_I5 "debug i5"
|
|
|
|
|