| | |
| | | private LiftCommandService liftCommandService; |
| | | @Autowired |
| | | private ShuttleCommandService shuttleCommandService; |
| | | @Autowired |
| | | private MapCommandService mapCommandService; |
| | | |
| | | @Scheduled(cron = "0/1 * * * * ? ") |
| | | public synchronized void executeTask() { |
| | |
| | | case AGV: |
| | | executeRes = agvCommandService.accept(motion); |
| | | break; |
| | | case MAP: |
| | | executeRes = mapCommandService.accept(motion); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | case CONVEYOR: |
| | | executeRes = conveyorCommandService.finish(motion); |
| | | break; |
| | | case MAP: |
| | | executeRes = mapCommandService.finish(motion); |
| | | break; |
| | | default: |
| | | break; |
| | | } |