根据识别物方向显示不同方向的红色蒙层

This commit is contained in:
liujing
2021-04-23 16:39:04 +08:00
parent 32cdf27dbf
commit 5701cf1927
6 changed files with 5 additions and 7 deletions

View File

@@ -81,9 +81,8 @@ public class MoGoV2XCloundDataManager implements IMoGoV2XCloundDataManager, IMog
}
mV2XScenario.setWarningEntity(cloundWarningInfo);
mV2XScenario.init(null);
//预警蒙层
MarkerServiceHandler.getApis().getV2XListenerManager().warningChangedForListenerWithDirection(cloundWarningInfo.getType(), MogoReceiver.ACTION_V2X_FRONT_WARNING);
MarkerServiceHandler.getApis().getV2XListenerManager().warningChangedForListenerWithDirection(cloundWarningInfo.getDirection(), MogoReceiver.ACTION_V2X_FRONT_WARNING);
isSelfLineClear = false;
isFirstLocation = false;
V2XServiceManager.getMarkerManager().removeMarkers(WARNING_ARROWS);

View File

@@ -312,7 +312,7 @@ public class V2XTestConsoleWindow extends ConstraintLayout {
mBtnAdasDataWarn.setOnClickListener(v -> {
Intent intent = new Intent(V2XConst.BROADCAST_ADAS_SCENE_HANDLER_ACTION);
intent.putExtra(V2XConst.BROADCAST_ADAS_EXTRA_KEY, "23");
intent.putExtra(V2XConst.BROADCAST_ADAS_EXTRA_KEY, "right");
getContext().sendBroadcast(intent);
});