1
skyouc
2025-12-24 c5f8df63aa5b80331a65f3cb9cd201f12cd399f2
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java
@@ -842,6 +842,12 @@
                                                agvId,    // AGV
                                                now    // 工作时间
                                        ));
                                        log.info("1TurnCorner posType={}, code={}, corner={}, nextDirection={}, finalAngle={}",
                                                Objects.requireNonNull(TaskPosDto.queryPosType(segment.getPosType())),
                                                lastCode.getData(),
                                                lastCode.getCornerBool(),
                                                nextDirection,
                                                180);
                                    } else {
                                        // turn
                                        actionList.add(new Action(
@@ -859,6 +865,12 @@
                                                agvId,    // AGV
                                                now    // 工作时间
                                        ));
                                        log.info("2TurnCorner posType={}, code={}, corner={}, nextDirection={}, finalAngle={}",
                                                Objects.requireNonNull(TaskPosDto.queryPosType(segment.getPosType())),
                                                lastCode.getData(),
                                                lastCode.getCornerBool(),
                                                nextDirection,
                                                nextDirection);
                                    }
                                    lastDirection = nextDirection;
                                }
@@ -883,6 +895,12 @@
                                            agvId,    // AGV
                                            now    // 工作时间
                                    ));
                                    log.info("3TurnCorner posType={}, code={}, corner={}, nextDirection={}, finalAngle={}",
                                            Objects.requireNonNull(TaskPosDto.queryPosType(segment.getPosType())),
                                            lastCode.getData(),
                                            lastCode.getCornerBool(),
                                            nextDirection,
                                            180);
                                }
                            }
                        }
@@ -905,6 +923,12 @@
                                    agvId,    // AGV
                                    now    // 工作时间
                            ));
                            log.info("4TurnCorner posType={}, code={}, corner={}, nextDirection={}, finalAngle={}",
                                    Objects.requireNonNull(TaskPosDto.queryPosType(segment.getPosType())),
                                    lastCode.getData(),
                                    lastCode.getCornerBool(),
                                    nextDirection,
                                    nextDirection);
                            lastDirection = nextDirection;
                        }
@@ -963,6 +987,12 @@
                                    agvId,    // AGV
                                    now    // 工作时间
                            ));
                            log.info("5TurnCorner posType={}, code={}, corner={}, nextDirection={}, finalAngle={}",
                                    Objects.requireNonNull(TaskPosDto.queryPosType(segment.getPosType())),
                                    lastCode.getData(),
                                    lastCode.getCornerBool(),
                                    null,
                                    turnDirection);
                            lastDirection = workDirection;
                        }
                    }