From d5712e1c70394cabc5cfe5ca3b548d91f4d4c03b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Tue, 20 May 2025 17:35:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E4=BB=A3=E7=A0=81=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gd/app/service/DeviceCommandUtilService.java | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/main/java/com/iflytop/gd/app/service/DeviceCommandUtilService.java b/src/main/java/com/iflytop/gd/app/service/DeviceCommandUtilService.java index c8ec8c1..2dcce92 100644 --- a/src/main/java/com/iflytop/gd/app/service/DeviceCommandUtilService.java +++ b/src/main/java/com/iflytop/gd/app/service/DeviceCommandUtilService.java @@ -660,6 +660,42 @@ public class DeviceCommandUtilService { } /** + * 停止泵旋转 + */ + public void acidPumpStop(String cmdId, String cmdCode, AcidPumpDeviceCode acidPumpDevice) throws Exception { + DeviceCommandBundle deviceCommand; + switch (acidPumpDevice) { + case acid_pump_01 -> { + deviceCommand = DeviceCommandGenerator.acidPump1Stop(); + } + case acid_pump_02 -> { + deviceCommand = DeviceCommandGenerator.acidPump2Stop(); + } + case acid_pump_03 -> { + deviceCommand = DeviceCommandGenerator.acidPump3Stop(); + } + case acid_pump_04 -> { + deviceCommand = DeviceCommandGenerator.acidPump4Stop(); + } + case acid_pump_05 -> { + deviceCommand = DeviceCommandGenerator.acidPump5Stop(); + } + case acid_pump_06 -> { + deviceCommand = DeviceCommandGenerator.acidPump6Stop(); + } + case acid_pump_07 -> { + deviceCommand = DeviceCommandGenerator.acidPump7Stop(); + } + case acid_pump_08 -> { + deviceCommand = DeviceCommandGenerator.acidPump8Stop(); + } + default -> throw new RuntimeException("index 未找到"); + } + CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdId, cmdCode, deviceCommand); + commandWait(deviceCommandFuture); + } + + /** * 添加溶液 */ public void acidPumpMoveBy(AcidPumpDeviceCode acidPumpDevice, double position) throws Exception {