From 0f2eaeeb387850acfede95c5c061b5392dae8688 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期三, 28 六月 2023 16:58:25 +0800 Subject: [PATCH] 寻路算法和避障 --- src/main/java/com/zy/core/model/protocol/LiftProtocol.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/model/protocol/LiftProtocol.java b/src/main/java/com/zy/core/model/protocol/LiftProtocol.java index fd78a3c..790bb2f 100644 --- a/src/main/java/com/zy/core/model/protocol/LiftProtocol.java +++ b/src/main/java/com/zy/core/model/protocol/LiftProtocol.java @@ -268,6 +268,28 @@ return res; } + // 鏄惁澶勪簬绌洪棽寰呭懡鐘舵�侊紝涓嶅垽鏂换鍔″彿 + public Boolean isIdleNoTask() { + if(this.taskNo == null + || this.liftLock == null + || this.ready == null + || this.running == null + || this.mode == null + || this.pakMk == null + ){ + return false; + } + + boolean res = !this.liftLock +// && this.ready + && !this.running + && this.mode + && this.pakMk + && !this.securityMk + ; + return res; + } + public void setPositionArrivalFeedback(Short position) { Short lev = null; switch (position) { -- Gitblit v1.9.1