|
|
@ -22,7 +22,6 @@ export function switchThreeWayValve(params: { type: string }) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//氮气三路
|
|
|
|
export function controlValve(params: ControlValueType) { |
|
|
|
const commandId = addTxnRecord({ ...params, category: "debug" }); |
|
|
@ -72,6 +71,9 @@ export function pushInTray(params: Record<string, any>) { |
|
|
|
export function rotate(params: any) { |
|
|
|
return httpRequest<BaseResponse<string>>({ url: "/api/cmd/rotate", params, method: "POST" }); |
|
|
|
} |
|
|
|
export function setMotorSpeed(params: { axis: "X" | "Y" | "Z"; speed: number }) { |
|
|
|
return httpRequest<BaseResponse<string>>({ url: "/api/cmd/setMotorSpeed", params: { params }, method: "POST" }); |
|
|
|
} |
|
|
|
|
|
|
|
export type SprayParam = { |
|
|
|
matrixId: number; |
|
|
@ -103,7 +105,6 @@ export function stopDehumidify() { |
|
|
|
return httpRequest<BaseResponse>({ url: "/api/cmd/stopDehumidify", method: "POST" }); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//停止电机
|
|
|
|
export function stopMotor(params: any) { |
|
|
|
return httpRequest<BaseResponse<string>>({ url: "/api/cmd/stopMotor", params, method: "POST" }); |
|
|
|