| | |
| | | |
| | | //去待机位 |
| | | String locNo = Utils.getLocNo(Utils.getRow(liftStandByLocNo) + 1, Utils.getBay(liftStandByLocNo) - 1, Utils.getLev(liftStandByLocNo)); |
| | | //防止另一辆车占用待机位 |
| | | try{ |
| | | if (shuttleProtocol.getShuttleNo() == 2) { |
| | | ShuttleThread shuttleThread1 = (ShuttleThread) SlaveConnection.get(SlaveType.Shuttle, 1); |
| | | if (locNo.equals(shuttleThread1.getStatus().getCurrentLocNo())) { |
| | | locNo = Utils.getLocNo(Utils.getRow(liftStandByLocNo) + 2, Utils.getBay(liftStandByLocNo) - 1, Utils.getLev(liftStandByLocNo)); |
| | | } |
| | | } else { |
| | | ShuttleThread shuttleThread2 = (ShuttleThread) SlaveConnection.get(SlaveType.Shuttle, 2); |
| | | if (locNo.equals(shuttleThread2.getStatus().getCurrentLocNo())) { |
| | | locNo = Utils.getLocNo(Utils.getRow(liftStandByLocNo) + 2, Utils.getBay(liftStandByLocNo) - 1, Utils.getLev(liftStandByLocNo)); |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | //获取小车到提升机待机行走命令 |
| | | List<ShuttleCommand> commands = shuttleOperaUtils.getStartToTargetCommands(shuttleProtocol.getCurrentLocNo(), locNo, NavigationMapType.DFX.id, assignCommand, shuttleThread); |
| | | if (commands == null) { |