| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | | |
| | | // 角度计算 |
| | |
| | | // } |
| | | |
| | | } catch (InterruptedException e) { |
| | | log.error("unlockTaskQueue", e); |
| | | News.error("unlockTaskQueue", e); |
| | | } |
| | | } |
| | | |
| | |
| | | return result; |
| | | } |
| | | |
| | | } |
| | | } |