|
@ -40,6 +40,11 @@ const onStartSelfTest = () => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const statusMap: Record<string, Record<string, string>> = { |
|
|
const statusMap: Record<string, Record<string, string>> = { |
|
|
|
|
|
doorOrigin: { |
|
|
|
|
|
name: '门', |
|
|
|
|
|
value: '', |
|
|
|
|
|
type: 'door', |
|
|
|
|
|
}, |
|
|
gantryXOrigin: { |
|
|
gantryXOrigin: { |
|
|
name: '机械臂x轴', |
|
|
name: '机械臂x轴', |
|
|
value: 'x', |
|
|
value: 'x', |
|
@ -161,7 +166,10 @@ const queryContainerList = () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const resetOrign = (item: SelfStatus) => { |
|
|
const resetOrign = (item: SelfStatus) => { |
|
|
if (item.value === 'x' || item.value === 'y' || item.value === 'z') { |
|
|
|
|
|
|
|
|
if (item.type === 'door') { |
|
|
|
|
|
door_origin() |
|
|
|
|
|
} |
|
|
|
|
|
else if (item.value === 'x' || item.value === 'y' || item.value === 'z') { |
|
|
gantry_origin(item.value) |
|
|
gantry_origin(item.value) |
|
|
} |
|
|
} |
|
|
else if (item.type === 'liquid') { |
|
|
else if (item.type === 'liquid') { |
|
@ -175,6 +183,17 @@ const resetOrign = (item: SelfStatus) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const door_origin = async () => { |
|
|
|
|
|
currentCommandId = Date.now().toString() |
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
|
|
commandId: currentCommandId, |
|
|
|
|
|
command: `door_origin`, |
|
|
|
|
|
params: {}, |
|
|
|
|
|
} |
|
|
|
|
|
await homeStore.sendControl(params) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 先注释 TODO |
|
|
// 先注释 TODO |
|
|
// const currentPumpId = ref() |
|
|
// const currentPumpId = ref() |
|
|
// const onPumpChange = (value: string) => { |
|
|
// const onPumpChange = (value: string) => { |
|
|