fixed bugs

This commit is contained in:
lixiaopeng
2021-09-07 20:41:03 +08:00
parent 47579f820f
commit d4474cde94
2 changed files with 5 additions and 5 deletions

View File

@@ -564,7 +564,7 @@ class MogoPrivateObuManager private constructor() {
if (direction == 5) {
ttsContent = String.format(ttsContent, "")
alertContent = String.format(alertContent, "")
} else if (direction == 6) else {
} else if (direction == 6) {
ttsContent = String.format(ttsContent, "")
alertContent = String.format(alertContent, "")
}
@@ -593,7 +593,7 @@ class MogoPrivateObuManager private constructor() {
ttsContent = WarningTypeEnum.getWarningTts(appId)
if (direction == 5) {
ttsContent = String.format(ttsContent, "")
} else if (direction == 6) else {
} else if (direction == 6) {
ttsContent = String.format(ttsContent, "")
}
}
@@ -615,14 +615,14 @@ class MogoPrivateObuManager private constructor() {
// }
}
//盲区预警
//盲区预警 TODO
WarningTypeEnum.TYPE_USECASE_ID_BSW.useCaseId -> {
ttsContent = WarningTypeEnum.getWarningTts(appId)
alertContent = WarningTypeEnum.getWarningContent(appId)
if (direction == 5) { //左后
ttsContent = String.format(ttsContent, "")
alertContent = String.format(alertContent, "")
} else if (direction == 6) else { //右后
} else if (direction == 6) { //右后
ttsContent = String.format(ttsContent, "")
alertContent = String.format(alertContent, "")
}

View File

@@ -55,7 +55,7 @@ class ObuTestTriggerReceiver : BroadcastReceiver() {
val v2vThreatExt =
V2vThreatExt(
1, 1,
ObuConstants.TARGET_CLASSIFICATION.TC_AHEAD_IN_LANE, 1, 1
ObuConstants.TARGET_CLASSIFICATION.TC_BEHIND_FAR_RIGHT, 1, 1
)
cvxV2vThreatIndInfo.ext_info = v2vThreatExt
cvxV2vThreatIndInfo.status = obuStatus