From 864068a49c985982577808e49ba2fe0b7a698839 Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期三, 26 十月 2022 11:22:13 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/thread/SiemensCrnThread.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
index 5d4dc1f..a7a25a9 100644
--- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -362,10 +362,22 @@
         }
         array[1] = command.getSourcePosZ();
         array[2] = command.getSourcePosY();
-        array[3] = command.getSourcePosX();
+        if (command.getSourcePosX()==(short)3){
+            array[3] = (short)1;
+        }else if (command.getSourcePosX()==(short)4){
+            array[3] = (short)2;
+        }else {
+            array[3] = command.getSourcePosX();
+        }
         array[4] = command.getDestinationPosZ();
         array[5] = command.getDestinationPosY();
-        array[6] = command.getDestinationPosX();
+        if (command.getDestinationPosX()==(short)3){
+            array[6] = (short)1;
+        }else if (command.getDestinationPosX()==(short)4){
+            array[6] = (short)2;
+        }else {
+            array[6] = command.getDestinationPosX();
+        }
         array[7] = command.getSourceStaNo();
         array[8] = command.getDestinationStaNo();
         // 浣滀笟淇℃伅

--
Gitblit v1.9.1