| | |
| | | return false; |
| | | } |
| | | |
| | | BasShuttleService shuttleService = SpringUtils.getBean(BasShuttleService.class); |
| | | if (shuttleService == null) { |
| | | News.error("系统错误"); |
| | | return false; |
| | | } |
| | | |
| | | BasShuttle basShuttle = shuttleService.selectById(slave.getId().shortValue()); |
| | | if (basShuttle == null) { |
| | | News.error("四向穿梭车不存在"); |
| | | return false; |
| | | } |
| | | |
| | | command.setShuttleNo(slave.getId().shortValue()); |
| | | // 开始任务 |
| | | short[] array = new short[17]; |
| | |
| | | array[7] = middleToDistDistances[1]; |
| | | } |
| | | |
| | | array[8] = basShuttle.getRunSpeed().shortValue();//四向穿梭车运行速度,从系统数据库读出 |
| | | if (command.getRunDirection() != null) { |
| | | //小车运行方向 |
| | | array[8] = command.getRunDirection(); |