[8.1.0][opt]绘制车前引导线时降低自车定位获取速度

This commit is contained in:
chenfufeng
2025-06-25 11:38:19 +08:00
parent 3e7c639b71
commit 2eab172209

View File

@@ -1,7 +1,6 @@
package com.mogo.eagle.core.function.business.routeoverlay;
import static com.mogo.map.MogoMap.DEFAULT;
import static com.mogo.map.MogoMap.SMALL_DES_MAP;
import android.annotation.SuppressLint;
import android.graphics.Color;
@@ -13,7 +12,6 @@ import androidx.core.util.Pools;
import com.mogo.eagle.core.data.config.FunctionBuildConfig;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager;
import com.mogo.eagle.core.function.call.map.CallerMapIdentifyManager;
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager;
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils;
import com.mogo.eagle.core.utilcode.util.DrivingDirectionUtils;
@@ -188,8 +186,8 @@ public class RouteOverlayDrawer {
RouteStrategy.INSTANCE.check(route.getVelocity(), route.getAcceleration(), routeList.size());
}
}
double lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lon();
double lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lat();
double lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLongitude();
double lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLatitude();
if (!points.isEmpty()) {
MogoLatLng top = null;
while (!points.isEmpty()) {
@@ -200,8 +198,8 @@ public class RouteOverlayDrawer {
if (first == top) {
break;
}
lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lon();
lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getWgs84Lat();
lon = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLongitude();
lat = CallerChassisLocationWGS84ListenerManager.INSTANCE.getChassisLocationWGS84().getLatitude();
long angle = isPointOnCarFront(lon, lat, bearing, first.lon, first.lat);
if (angle >= 90) {
if (isColorfulStrategy) {
@@ -268,9 +266,6 @@ public class RouteOverlayDrawer {
mPolylineOptions = options;
}
overlayManager.showOrUpdateLine(options,DEFAULT);
if (FunctionBuildConfig.isDrawDecIdentifyData && CallerMapIdentifyManager.INSTANCE.isDecViewLoaded()) {
overlayManager.showOrUpdateLine(options,SMALL_DES_MAP);
}
} else {
isExcept = true;
}