From cb0ab7cde8935d0b8858903857402fea2a22b041 Mon Sep 17 00:00:00 2001 From: psh Date: Tue, 9 Jan 2024 17:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E6=A2=AF=E4=BA=A4=E4=BA=92fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device_driver/basedriver/agv/utils/SocketUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/SocketUtil.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/SocketUtil.java index 3572f7f..002d5e1 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/SocketUtil.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/SocketUtil.java @@ -72,15 +72,15 @@ public class SocketUtil { write(b); int[] arr = packageResult(); if (arr[7] == 0x00) { - if ((arr[8] == 0x01 && agvaddr==2421)|| - (arr[8] == 0x02 && agvaddr==2422)) { + if ((arr[9] == 0x01 && agvaddr==2421)|| + (arr[9] == 0x02 && agvaddr==2422)) { log.info("电梯已就位,下发开门指令"); write(move); packageResult(); - if (arr[10] == 0x11 && action == 0X10) { + if (arr[11] == 0x11 && action == 0X0A) { log.info("电梯已开门就位,反馈NDC允许进入"); return true; - } else if (arr[10] == 0x21 && action == 0X00) { + } else if (arr[11] == 0x21 && action == 0X00) { log.info("电梯已关门就位,反馈NDC"); return true; }