From 33091bf4dc023d553ba899db0190360722bb63ef Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期三, 26 十月 2022 12:12:28 +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