#
Junjie
5 天以前 4cb014bccf1964942cdf8e885f946989d5cb8daa
src/main/java/com/zy/core/thread/ShuttleThread.java
@@ -1,6 +1,7 @@
package com.zy.core.thread;
import com.alibaba.fastjson.JSONObject;
import com.zy.common.ExecuteSupport;
import com.zy.common.model.NavigateNode;
import com.zy.core.ThreadHandler;
@@ -18,6 +19,8 @@
    ShuttleProtocol getStatus(boolean clone);//获取四向穿梭车状态
    ShuttleProtocol getStatus();//获取四向穿梭车状态-默认clone
    Object getOriginDeviceData();
    CommandResponse movePath(List<NavigateNode> nodes, Integer taskNo);//路径下发
@@ -45,6 +48,8 @@
    boolean isChargingCompleted();//是否充电完成
    boolean isFault();//是否故障
    List<NavigateNode> getMoveAdvancePath();//获取穿梭车任务路径
    int generateDeviceTaskNo(int taskNo, ShuttleTaskNoType type);//生成硬件设备工作号
@@ -61,6 +66,14 @@
    boolean requestWaiting();
    boolean enableDemo(boolean enable);//演示模式
    boolean offerSystemMsg(String format, Object... arguments);
    void updateDeviceDataLogTime(long time);
    JSONObject parseStatusToMsg(ShuttleProtocol shuttleProtocol);
    //***************获取命令*****************
    ShuttleCommand getMoveCommand(Integer taskNo, String startCodeNum, String distCodeNum, Integer allDistance, Integer runDirection, Integer runSpeed, List<NavigateNode> nodes);//获取移动命令