[6.5.0][视角切换] 代码重构+添加场景变化回调
This commit is contained in:
@@ -45,6 +45,7 @@ import mogo.v2x.MogoV2X
|
||||
import mogo.v2x.MogoV2X.RSI_PB
|
||||
import mogo.v2x.MogoV2X.RTEData_PB
|
||||
import java.lang.Math.abs
|
||||
import java.util.concurrent.TimeUnit.SECONDS
|
||||
|
||||
/**
|
||||
* V2N上车相关事件绘制
|
||||
@@ -295,13 +296,7 @@ internal object V2NIdentifyDrawer {
|
||||
override fun onShow() {
|
||||
super.onShow()
|
||||
runCatching { CallerHmiManager.notifyXiaoZhiStatusChanged(V2N(EventTypeEnumNew.getEnumType(poiType)), State.START) }
|
||||
CallerVisualAngleManager.changeAngle(
|
||||
RoadEvent(
|
||||
lon,
|
||||
lat,
|
||||
car.heading
|
||||
)
|
||||
)
|
||||
CallerVisualAngleManager.changeAngle(RoadEvent(2, SECONDS))
|
||||
}
|
||||
|
||||
override fun onDismiss() {
|
||||
|
||||
@@ -171,7 +171,7 @@ public class V2XRoadEventScenario extends AbsV2XScenario<V2XRoadEventEntity> imp
|
||||
if (isNeedChangeAngle()) {
|
||||
MarkerLocation location = content.getLocation();
|
||||
if (location != null) {
|
||||
CallerVisualAngleManager.INSTANCE.changeAngle(new RoadEvent(content.getLocation().getLon(), content.getLocation().getLat(), content.getLocation().getAngle(), false));
|
||||
CallerVisualAngleManager.INSTANCE.changeAngle(new RoadEvent(2, TimeUnit.SECONDS));
|
||||
}
|
||||
}
|
||||
if (entity.isNeedAddLine() && !EventTypeEnumNew.TYPE_SOCKET_ROAD_CONGESTION.getPoiType().equals(content.getPoiType())) {
|
||||
|
||||
Reference in New Issue
Block a user