|  |  |  | 
|---|
|  |  |  | Short endStartCode = Short.parseShort(basDevp.getQrCodeValue());//站点二维码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //增加移动进提升机命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, null, null, 500); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1600, ShuttleRunDirection.TOP.id, null, null, 500); | 
|---|
|  |  |  | commands.add(moveCommand); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //分配目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | Short distCode = Short.parseShort(basDevp.getQrCodeValue());//提升机口站点二维码 | 
|---|
|  |  |  | Short runDirection = ShuttleRunDirection.BOTTOM.id;//运行方向 | 
|---|
|  |  |  | //获取命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1400, runDirection, null, null, 500); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1600, runDirection, null, null, 500); | 
|---|
|  |  |  | commands.add(0, moveCommand);//将该指令添加到队头 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | assignCommand.setCommands(commands); | 
|---|
|  |  |  | 
|---|
|  |  |  | //                                    Short distCode = Short.parseShort(basDevp.getQrCodeValue());//提升机口站点二维码 | 
|---|
|  |  |  | //                                    Short runDirection = ShuttleRunDirection.BOTTOM.id;//运行方向 | 
|---|
|  |  |  | //                                    //获取命令 | 
|---|
|  |  |  | //                                    ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1400, runDirection, startCode, 1400, 500); | 
|---|
|  |  |  | //                                    ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1600, runDirection, startCode, 1600, 500); | 
|---|
|  |  |  | //                                    commands.add(0, moveCommand);//将该指令添加到队头 | 
|---|
|  |  |  | //                                } | 
|---|
|  |  |  | //                                assignCommand.setCommands(commands); | 
|---|
|  |  |  | 
|---|
|  |  |  | //                                Short endStartCode = Short.parseShort(basDevp.getQrCodeValue());//站点二维码 | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                                //增加移动进提升机命令 | 
|---|
|  |  |  | //                                ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, endStartCode, 1400, 500); | 
|---|
|  |  |  | //                                ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1600, ShuttleRunDirection.TOP.id, endStartCode, 1600, 500); | 
|---|
|  |  |  | //                                commands.add(moveCommand); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                                //分配目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | Short endStartCode = Short.parseShort(basDevp.getQrCodeValue());//站点二维码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //增加移动进提升机命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, null, null, 500); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1600, ShuttleRunDirection.TOP.id, null, null, 500); | 
|---|
|  |  |  | commands.add(moveCommand); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | short startCode = liftProtocol.getBarcode();//提升机内部二维码 | 
|---|
|  |  |  | Short distCode = commands.get(0).getStartCodeNum();//目标二维码 | 
|---|
|  |  |  | //获取移动命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1400, commands.get(0).getRunDirection(), null, null, 500); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1600, commands.get(0).getRunDirection(), null, null, 500); | 
|---|
|  |  |  | commands.add(0, moveCommand);//将该指令添加到队头 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //分配目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | Short basDevpQrCode = Short.parseShort(basDevp.getQrCodeValue());//站点二维码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //增加移动进提升机命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(basDevpQrCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, basDevpQrCode, 1400, 500); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(basDevpQrCode, liftProtocol.getBarcode(), 1600, ShuttleRunDirection.TOP.id, basDevpQrCode, 1600, 500); | 
|---|
|  |  |  | commands.add(moveCommand); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //分配目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | Short distCode = Short.parseShort(basDevp.getQrCodeValue());//提升机口站点二维码 | 
|---|
|  |  |  | Short runDirection = ShuttleRunDirection.BOTTOM.id;//运行方向 | 
|---|
|  |  |  | //获取命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1400, runDirection, startCode, 1400, 500); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1600, runDirection, startCode, 1600, 500); | 
|---|
|  |  |  | commands.add(0, moveCommand);//将该指令添加到队头 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //进行充电中 | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 提升机内部二维码 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Short barcode = 1699; | 
|---|
|  |  |  | private Short barcode = 1661; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 任务号 | 
|---|