skyouc
6 天以前 af5e14557af94409a0d2e3f2dca1eed1b99a895a
no message
1个文件已修改
13 ■■■■ 已修改文件
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MainService.java
@@ -856,7 +856,7 @@
                                        Double turnDirection = nextDirection;
                                        if ((turnCodes.contains(nextCode.getData()) && lastCode.getData().equals("00000050")) || (isLoc && locTurnCodes.contains(nextCode.getData()) && lastCode.getData().equals("00000080"))) {
                                            turnDirection = 180.0;
                                            nextDirection = turnDirection;
                                            reverse = false;
                                        }
                                        // turn
                                        actionList.add(new Action(
@@ -905,7 +905,6 @@
                                            now    // 工作时间
                                    ));
                                    reverse = false;
                                    log.info("3TurnCorner posType={}, code={}, corner={}, nextDirection={}, finalAngle={}",
                                            posType,
                                            lastCode.getData(),
@@ -976,20 +975,12 @@
                    if (Cools.isEmpty(actionList) || !actionList.get(0).getActionType().equals(ActionTypeType.TurnCorner.val())) {
                        Double turnDirection = workDirection;
                        Code nextCode = codeService.getCacheByData(lastCode.getData());
                        boolean reverse = true;
//                        Double nextDirection = mapService.calculateDirection(lastCode, nextCode, angleOffsetVal);
                        // if (isStation && turnCodes.contains(lastCode.getData())) {
                        if ((turnCodes.contains(nextCode.getData()) && lastCode.getData().equals("00000050")) || (isLoc && locTurnCodes.contains(nextCode.getData()) && lastCode.getData().equals("00000080"))) {
                        // if ((isStation && turnCodes.contains(lastCode.getData())) || (isLoc && locTurnCodes.contains(lastCode.getData()))) {
                            turnDirection = workDirection + 180.0;
                            reverse = false;
                        }
                        // run
                        ActionTypeType actionType = ActionTypeType.StraightAheadTurnable;
                        if (reverse) {
                            actionType = ActionTypeType.StraightBackTurnable;
                        }
                        if (lastCode.getCornerBool()) {
                            // turn
                            actionList.add(new Action(
@@ -998,7 +989,7 @@
                                    task.getId(),    // 任务
                                    null,    // 动作号
                                    null,    // 优先级
                                    actionType.desc,    // 名称
                                    ActionTypeType.TurnCorner.desc,    // 名称
                                    mapService.isTurnCorner(lastCode.getData()) ? 1D : 0D,    // 属性值
                                    lastCode.getData(),    // 地面码
                                    String.valueOf(turnDirection),   // 动作参数