| | |
| | | // //小车空闲且有跑库程序 |
| | | // shuttleAction.moveLoc(slave.getId()); |
| | | |
| | | //演示模式 |
| | | shuttleAction.demo(slave.getId()); |
| | | |
| | | Thread.sleep(200); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | && this.shuttleProtocol.getMode() == 1 |
| | | && this.shuttleProtocol.getPakMk() |
| | | && this.shuttleProtocol.getErrorCode().equals("0") |
| | | && this.shuttleProtocol.getTaskNo() == 0 |
| | | && (this.shuttleProtocol.getProtocolStatus() == ShuttleProtocolStatusType.IDLE.id |
| | | || this.shuttleProtocol.getProtocolStatus() == ShuttleProtocolStatusType.WAITING.id |
| | | || this.shuttleProtocol.getProtocolStatus() == ShuttleProtocolStatusType.CHARGING_WAITING.id) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean enableDemo(boolean enable) { |
| | | shuttleProtocol.setDemo(enable); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public boolean offerSystemMsg(String format, Object... arguments) { |
| | | String msg = News.replace(format, arguments); |
| | | shuttleProtocol.setSystemMsg(msg); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public ShuttleCommand getMoveCommand(Integer taskNo, String startCodeNum, String distCodeNum, Integer allDistance, Integer runDirection, Integer runSpeed, List<NavigateNode> nodes) { |
| | | NavigateMapData navigateMapData = SpringUtils.getBean(NavigateMapData.class); |
| | | NyShuttleHttpCommand httpStandard = getHttpStandard(slave.getId(), taskNo); |