增加了异常车辆提醒 全方位预警tts逻辑

This commit is contained in:
董宏宇
2021-09-13 14:29:08 +08:00
parent 58852ce8c8
commit 63a2275e7e
2 changed files with 4 additions and 13 deletions

View File

@@ -57,8 +57,8 @@ enum class WarningTypeEnum(
TYPE_USECASE_ID_AVW(
ObuConstants.USE_CASE_ID.AVW,
"异常车辆提醒",
"车异常",
"小心前方异常车辆",
"%s车异常",
"小心%s异常车辆",
R.drawable.icon_warning_v2x_abnormal_vehicle
),
TYPE_USECASE_ID_BSW(

View File

@@ -648,17 +648,8 @@ class MogoPrivateObuManager private constructor() {
WarningTypeEnum.TYPE_USECASE_ID_AVW.useCaseId -> {
alertContent = WarningTypeEnum.getWarningContent(appId)
ttsContent = WarningTypeEnum.getWarningTts(appId)
// when (direction) {
// 3 -> { //左前
// ttsContent = String.format(ttsContent, "左")
// }
// 4 -> { //右前
// ttsContent = String.format(ttsContent, "右")
// }
// 1 -> { //正前
// ttsContent = alertContent
// }
// }
alertContent = String.format(alertContent, direction.desc)
ttsContent = String.format(ttsContent, direction.desc)
}
//盲区预警