修复左侧展示效果红框

This commit is contained in:
董宏宇
2021-09-13 10:54:33 +08:00
committed by chenfufeng
parent 1236316ba3
commit 0cff46ba8e
4 changed files with 10 additions and 6 deletions

View File

@@ -23,8 +23,9 @@ adb shell am broadcast -a com.hmi.v2x.trafficlight --ez trafficLightIsShow false
adb shell am broadcast -a com.hmi.v2x.limitingvelocity --ez limitingVelocityIsShow true --ei limitingVelocitySpeed 60
adb shell am broadcast -a com.hmi.v2x.limitingvelocity --ez limitingVelocityIsShow false
// 控制OBU场景自测 obuStates 1-添加2-删除0-更新
adb shell am broadcast -a com.obu.test_trigger --ei obuStates 1 --ei obuLevel 3 --ei obuType 0x2A01
// 控制OBU场景自测 obuStates 1-添加2-删除0-更新 ,obuEventDirection 事件方向
adb shell am broadcast -a com.obu.test_trigger --ei obuStates 1 --ei obuLevel 3 --ei obuType 0x2A01 --ei obuEventDirection 0x11
// 控制OBU 模拟自车位置
adb shell am broadcast -a com.obu.test_trigger_recognized

View File

@@ -25,5 +25,7 @@ public class MogoObuConst {
public static String BROADCAST_PTC_INFO_EXTRA_KEY = "ptcInfo";
//道路交通信息类型 0x0--0x17
public static String BROADCAST_RTI_TYPE_EXTRA_KEY = "rtiType";
//道路交通信息触发方向 0x11--0x47
public static String BROADCAST_OBU_EVENT_DIRECTION_EXTRA_KEY = "obuEventDirection";
}

View File

@@ -440,7 +440,7 @@ class MogoPrivateObuManager private constructor() {
ObuConstants.TARGET_CLASSIFICATION.TC_BEHIND_IN_LANE,
0x05 -> WarningDirectionEnum.ALERT_WARNING_BOTTOM //正后方
0x02 -> WarningDirectionEnum.ALERT_WARNING_RIGHT //正左方
0x02 -> WarningDirectionEnum.ALERT_WARNING_LEFT //正左方
ObuConstants.TARGET_CLASSIFICATION.TC_AHEAD_LEFT,
ObuConstants.TARGET_CLASSIFICATION.TC_AHEAD_FAR_LEFT,

View File

@@ -35,8 +35,10 @@ class ObuTestTriggerReceiver : BroadcastReceiver() {
val obuType = intent.getIntExtra(MogoObuConst.BROADCAST_OBU_TYPE_EXTRA_KEY, 0)
val obuStatus = intent.getIntExtra(MogoObuConst.BROADCAST_OBU_STATES_EXTRA_KEY, 0)
val obuLevel = intent.getIntExtra(MogoObuConst.BROADCAST_OBU_LEVEL_EXTRA_KEY, 3)
val obuDirection =
intent.getIntExtra(MogoObuConst.BROADCAST_OBU_EVENT_DIRECTION_EXTRA_KEY, 0x11)
Logger.d(
TAG, "obuType:$obuType obuStatus:$obuStatus"
TAG, "obuType:$obuType obuStatus:$obuStatus obuDirection$obuDirection"
)
when (obuType) {
@@ -54,8 +56,7 @@ class ObuTestTriggerReceiver : BroadcastReceiver() {
val v2vThreatExt =
V2vThreatExt(
1, 1,
ObuConstants.TARGET_CLASSIFICATION.TC_BEHIND_FAR_RIGHT, 1, 1
1, 1, obuDirection, 1, 1
)
cvxV2vThreatIndInfo.ext_info = v2vThreatExt
cvxV2vThreatIndInfo.status = obuStatus