From 80f5003a640db7795d69c5e3a73caa685c289b80 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@gmail.com>
Date: 星期三, 14 一月 2026 16:27:38 +0800
Subject: [PATCH] #

---
 zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java
index 423b127..d792dd8 100644
--- a/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java
+++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java
@@ -427,16 +427,20 @@
     }
 
     public static void main(String[] args) {
+        CodeSpinType codeSpinType = calcSpinDirection(null, 260.0, 10.0);
         List<DirectionDto> directionDtoList = DirectionDto.initCodeDirections();
-        System.out.println(JSON.toJSONString(directionDtoList));
+        System.out.println(codeSpinType.toString());
     }
 
-    public CodeSpinType calcSpinDirection(Code code, Double currDir, Double nextDir) {
+    public static CodeSpinType calcSpinDirection(Code code, Double currDir, Double nextDir) {
         if (Cools.isEmpty(code, currDir, nextDir)) {
             return CodeSpinType.NA;
         }
         List<Double> disableAngleList = new ArrayList<>();
         List<DirectionDto> directionDtoList = DirectionDto.initCodeDirections();
+        if (code.getData().contains("57")) {
+            directionDtoList = DirectionDto.initCodeDirections0();
+        }
         for (DirectionDto dto : directionDtoList) {
             if (null != dto.getEnabled() && !dto.getEnabled()) {
                 disableAngleList.add(dto.getAngle());
@@ -455,8 +459,8 @@
             return CodeSpinType.NA;
         }
 
-        double cwDelta = cwDelta(curr, next);     // (0, 360)
-        double ccwDelta = 360.0 - cwDelta;  // (0, 360)
+        double cwDelta = cwDelta(curr, next);
+        double ccwDelta = 360.0 - cwDelta;
 
         boolean cwBlocked = false;
         boolean ccwBlocked = false;

--
Gitblit v1.9.1