\"feat_Enhance_BMS_Simulation_SystemLog_UI_and_ACS_Controls\"
This commit is contained in:
20
types.ts
20
types.ts
@@ -22,7 +22,7 @@ export enum NodeType {
|
||||
UnLoader = 2,
|
||||
Charging = 3, // Used for Cleaner in new map
|
||||
Buffer = 4,
|
||||
ChargerStation = 5,
|
||||
ChargerStation = 5,
|
||||
Label = 6,
|
||||
Image = 7
|
||||
}
|
||||
@@ -34,14 +34,14 @@ export interface MapNode extends Point {
|
||||
name: string;
|
||||
rfidId: string; // RFID is property of Node
|
||||
connectedNodes: string[]; // Keep track for export
|
||||
|
||||
|
||||
// Visual props
|
||||
labelText?: string;
|
||||
foreColor?: string;
|
||||
backColor?: string;
|
||||
imageBase64?: string;
|
||||
displayColor?: string;
|
||||
|
||||
|
||||
// New props preservation
|
||||
fontSize?: number;
|
||||
}
|
||||
@@ -177,10 +177,10 @@ export enum AgvError {
|
||||
Charger_pos_error = 3,
|
||||
line_out_error = 4,
|
||||
runerror_by_no_magent_line = 5,
|
||||
agv_system_error=6,
|
||||
battery_low_voltage=7,
|
||||
lift_time_over=9,
|
||||
lift_driver_ocr=10,
|
||||
agv_system_error = 6,
|
||||
battery_low_voltage = 7,
|
||||
lift_time_over = 9,
|
||||
lift_driver_ocr = 10,
|
||||
lift_driver_emg = 11,
|
||||
arrive_ctl_comm_error = 12,
|
||||
door_ctl_comm_error = 13,
|
||||
@@ -241,7 +241,7 @@ export interface AgvState {
|
||||
runConfig: AgvRunConfig;
|
||||
error: string | null;
|
||||
sensorStatus: string; // Corresponds to sts_sensor in C#
|
||||
|
||||
|
||||
// Physical Sensors
|
||||
detectedRfid: string | null;
|
||||
sensorLineFront: boolean;
|
||||
@@ -251,7 +251,9 @@ export interface AgvState {
|
||||
// New features
|
||||
magnetOn: boolean;
|
||||
liftStatus: 'IDLE' | 'UP' | 'DOWN';
|
||||
|
||||
lidarEnabled: boolean; // 1=ON, 0=OFF
|
||||
isCharging: boolean; // Manual charging state
|
||||
|
||||
// Protocol Flags (Integers representing bitmaps)
|
||||
system0: number;
|
||||
@@ -262,7 +264,7 @@ export interface AgvState {
|
||||
// Battery
|
||||
batteryLevel: number; // Percentage 0-100
|
||||
maxCapacity: number; // Ah (Total Capacity)
|
||||
batteryTemp: number;
|
||||
batteryTemps: number[]; // [Temp1, Temp2]
|
||||
cellVoltages: number[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user