Skip to content

Commit

Permalink
#260 - update data type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Dec 21, 2024
1 parent d6eee04 commit bb48fa3
Showing 1 changed file with 62 additions and 49 deletions.
111 changes: 62 additions & 49 deletions angular-client/src/utils/enumerations/identifier-data-type.ts
Original file line number Diff line number Diff line change
@@ -1,61 +1,74 @@
export enum IdentifierDataType {
DRIVER = 'Driver',
LOCATION = 'location',
SYSTEM = 'system',
PACK_TEMP = 'Status/Temp_Average',
MOTOR_TEMP = 'Temps/Motor_Temperature',
MOTOR_USAGE = 'Motor Usage',
COOL_USAGE = 'Cooling Usage',
STATE_OF_CHARGE = 'Pack/SOC',
POINTS = 'GPS/Location',
VIEWERS = 'Viewers',

// Special Latency info sent by Scylla
LATENCY = 'Old_Latency',
NEW_LATENCY = 'Latency',

//Fake Data Points
MOTOR_USAGE = 'Motor Usage',
COOL_USAGE = 'Cooling Usage',
STEERING_ANGLE = 'Steering Angle',
CURRENT = 'Charging/Current',
// Charger Faults
COMM_TIMEOUT_FAULT = 'Box/F_CommTimeout',
HARDWARE_FAILURE_FAULT = 'Box/F_HardwareFailure',
OVER_TEMP_FAULT = 'Box/F_OverTemp',
OVER_VOLTAGE_FAULT = 'Box/F_OverVoltage',
WRONG_BAT_CONNECT_FAULT = 'Box/F_WrongBatConnect',
// BMS Faults
OPEN_WIRE = 'Status/F/Open_Wire',
CHARGER_LIMIT_ENFORCEMENT_FAULT = 'Status/F/CCL_Enforce',
CHARGER_CAN_FAULT = 'Status/F/Charger_Can',
BATTERY_THERMISTOR = 'Status/F/Battery_Therm',
CHARGER_SAFETY_RELAY = 'Status/F/Charger_Safety',
DISCHARGE_LIMIT_ENFORCEMENT_FAULT = 'Status/F/DCL_Enforce',
EXTERNAL_CAN_FAULT = 'Status/F/External_Can',
WEAK_PACK_FAULT = 'Status/F/Weak_Pack',
LOW_CELL_VOLTAGE = 'Status/F/Low_Cell_Volts',
CHARGE_READING_MISMATCH = 'Status/F/Charge_Reading',
CURRENT_SENSOR_FAULT = 'Status/F/Current_Sense',
INTERNAL_CELL_COMM_FAULT = 'Status/F/IC_Comm',
INTERNAL_THERMAL_ERROR = 'Status/F/Thermal_Err',
INTERNAL_SOFTWARE_FAULT = 'Status/F/Software',
PACK_OVERHEAT = 'Status/F/Pack_Overheat',
CELL_UNDERVOLTAGE = 'Status/F/Cell_Undervoltage',
CELL_OVERVOLTAGE = 'Status/F/Cell_Overvoltage',
CELLS_NOT_BALANCING = 'Status/F/Cells_Not_Balancing',
VIEWERS = 'Viewers',
SPEED = 'State/Speed',
TORQUE = 'Torque',
BRAKE_PRESSURE = 'Brake Pressure',
CPUUsage = 'OnBoard/CpuUsage',
CPUTemp = 'OnBoard/CpuTemp',
RAMUsage = 'OnBoard/MemAvailable',
WIFIRSSI = 'HaLow/RSSI',
MCS = 'HaLow/ApMCS',
ACCELERATION = 'Acceleration',
CHARGE_CURRENT_LIMIT = 'Pack/CCL',
DISCHARGE_CURRENT_LIMIT = 'Pack/DCL',
XYZAccel = 'XYZAcceleration',
STATUS_BALANCING = 'Status/Balancing',
BMS_MODE = 'Status/State',
VOLTS_HIGH = 'Cells/Volts_High_Value',
VOLTS_LOW = 'Cells/Volts_Low_Value',
CHARGING = 'Charging/Control',
PACK_VOLTAGE = 'Pack/Voltage',
CELL_TEMP_HIGH = 'Cells/Temp_High_Value',
CELL_TEMP_AVG = 'Cells/Temp_Avg_Value'

// MPU
SPEED = 'MPU/State/Speed',

// DTI
MOTOR_TEMP = 'DTI/Temps/Motor_Temperature',

// TPU
CPUUsage = 'TPU/OnBoard/CpuUsage',
CPUTemp = 'TPU/OnBoard/CpuTemp',
RAMUsage = 'TPU/OnBoard/MemAvailable',
WIFIRSSI = 'TPU/HaLow/RSSI',
MCS = 'TPU/HaLow/ApMCS',

// BMS
PACK_TEMP = 'BMS/Status/Temp_Average',
STATE_OF_CHARGE = 'BMS/Pack/SOC',
CURRENT = 'BMS/Charging/Current',
CHARGE_CURRENT_LIMIT = 'BMS/Pack/CCL',
DISCHARGE_CURRENT_LIMIT = 'BMS/Pack/DCL',
STATUS_BALANCING = 'BMS/Status/Balancing',
BMS_MODE = 'BMS/Status/State',
VOLTS_HIGH = 'BMS/Cells/Volts_High_Value',
VOLTS_LOW = 'BMS/Cells/Volts_Low_Value',
CHARGING = 'BMS/Charging/Control',
PACK_VOLTAGE = 'BMS/Pack/Voltage',
CELL_TEMP_HIGH = 'BMS/Cells/Temp_High_Value',
CELL_TEMP_AVG = 'BMS/Cells/Temp_Avg_Value',

// Charger Faults
COMM_TIMEOUT_FAULT = 'Charger/Box/F_CommTimeout',
HARDWARE_FAILURE_FAULT = 'Charger/Box/F_HardwareFailure',
OVER_TEMP_FAULT = 'Charger/Box/F_OverTemp',
OVER_VOLTAGE_FAULT = 'Charger/Box/F_OverVoltage',
WRONG_BAT_CONNECT_FAULT = 'Charger/Box/F_WrongBatConnect',

// BMS Faults
OPEN_WIRE = 'BMS/Status/F/Open_Wire',
CHARGER_LIMIT_ENFORCEMENT_FAULT = 'BMS/Status/F/CCL_Enforce',
CHARGER_CAN_FAULT = 'BMS/Status/F/Charger_Can',
BATTERY_THERMISTOR = 'BMS/Status/F/Battery_Therm',
CHARGER_SAFETY_RELAY = 'BMS/Status/F/Charger_Safety',
DISCHARGE_LIMIT_ENFORCEMENT_FAULT = 'BMS/Status/F/DCL_Enforce',
EXTERNAL_CAN_FAULT = 'BMS/Status/F/External_Can',
WEAK_PACK_FAULT = 'BMS/Status/F/Weak_Pack',
LOW_CELL_VOLTAGE = 'BMS/Status/F/Low_Cell_Volts',
CHARGE_READING_MISMATCH = 'BMS/Status/F/Charge_Reading',
CURRENT_SENSOR_FAULT = 'BMS/Status/F/Current_Sense',
INTERNAL_CELL_COMM_FAULT = 'BMS/Status/F/IC_Comm',
INTERNAL_THERMAL_ERROR = 'BMS/Status/F/Thermal_Err',
INTERNAL_SOFTWARE_FAULT = 'BMS/Status/F/Software',
PACK_OVERHEAT = 'BMS/Status/F/Pack_Overheat',
CELL_UNDERVOLTAGE = 'BMS/Status/F/Cell_Undervoltage',
CELL_OVERVOLTAGE = 'BMS/Status/F/Cell_Overvoltage',
CELLS_NOT_BALANCING = 'BMS/Status/F/Cells_Not_Balancing'
}

0 comments on commit bb48fa3

Please sign in to comment.