删除了方向角比对

This commit is contained in:
董宏宇
2020-11-19 14:56:52 +08:00
parent a2d93d3b71
commit 249fc6b29c

View File

@@ -86,8 +86,7 @@ public class V2XAlarmServer {
// "\n事件角度" + markerNoveltyInfo.getLocation().getAngle() +
// "\n车头角度" + currentLocation.getAngle() +
// "\n角度差值" + Math.abs(currentLocation.getAngle() - markerNoveltyInfo.getLocation().getAngle()));
if (v2XRoadEventEntity.getLocation().getAngle() >= 0 &&
Math.abs(currentLocation.getBearing() - v2XRoadEventEntity.getLocation().getAngle()) <= 10) {
if (v2XRoadEventEntity.getLocation().getAngle() >= 0) {
// 计算车辆距离指定气泡的距离
MarkerLocation eventLocation = v2XRoadEventEntity.getLocation();