zhang
15 小时以前 70930071a49190f414c8d8bc9c9e9795a4096739
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java
@@ -26,6 +26,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import com.zy.acs.common.utils.News;
import java.util.*;
import java.util.concurrent.ConcurrentLinkedQueue;
@@ -136,12 +137,15 @@
            return null;
        }
        angle = (angle + 360) % 360;
        double result;
        double remainder = angle % 45;
        if (remainder < 22.5) {
            return angle - remainder;
            result = angle - remainder;
        } else {
            return angle + (45 - remainder);
            result = angle + (45 - remainder);
        }
        return (result + 360) % 360;
    }
    // 角度计算
@@ -264,7 +268,7 @@
//            }
        } catch (InterruptedException e) {
            log.error("unlockTaskQueue", e);
            News.error("unlockTaskQueue", e);
        }
    }
@@ -728,4 +732,4 @@
        return result;
    }
}
}