From 2c70de24f676af47132638a3aeaa69cc5b64a8c4 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 20 十月 2025 16:34:18 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/impl/NyShuttleThread.java | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
index 44f6187..bf7a896 100644
--- a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
+++ b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
@@ -675,6 +675,10 @@
.eq("status", 1));
if (shuttleMaxPowerVerifyConfig != null) {
if (shuttleMaxPowerVerifyConfig.getValue().equals("true")) {
+ if (this.shuttleProtocol.getBatteryPower() == null) {
+ return false;
+ }
+
if (this.shuttleProtocol.getBatteryVoltage() < 5630) {
return false;//鐢靛帇涓嶅缁х画鍏呯數
}
@@ -953,6 +957,10 @@
List<NavigationMapType> restartCalcMapTypes = new ArrayList<>(mapTypes);
restartCalcMapTypes.add(NavigationMapType.SHUTTLE);
+ if (assignCommand.getTaskMode() == ShuttleTaskModeType.TRANSPORT.id) {
+ restartCalcMapTypes.add(NavigationMapType.DFX);
+ }
+
String currentLocNo = shuttleProtocol.getCurrentLocNo();
List<ShuttleCommand> commands = shuttleOperaUtils.getStartToTargetCommands(currentLocNo, locNo, restartCalcMapTypes, assignCommand, this);
if (commands == null) {
@@ -1055,11 +1063,12 @@
Integer taskId = getTaskId();
HashMap<String, Object> body = new HashMap<>();
- if (moveIn) {
- body.put("requestType", "intoLift");//杩涙彁鍗囨満
- } else {
- body.put("requestType", "outLift");//鍑烘彁鍗囨満
- }
+// if (moveIn) {
+// body.put("requestType", "intoLift");//杩涙彁鍗囨満
+// } else {
+// body.put("requestType", "outLift");//鍑烘彁鍗囨満
+// }
+ body.put("requestType", "move");//绉诲姩鍛戒护
body.put("taskId", taskId);//TaskID闇�瑕侀殢鏈�
body.put("path", path);
request.setBody(body);
--
Gitblit v1.9.1