This commit is contained in:
lixiaopeng
2021-10-20 10:09:33 +08:00
parent b585c4fd2e
commit 5aa218e6ef

View File

@@ -2,6 +2,7 @@ package com.mogo.eagle.core.function.obu.mogo
import android.content.Context
import android.text.TextUtils
import android.util.Log
import com.alibaba.android.arouter.launcher.ARouter
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
@@ -301,6 +302,7 @@ class MogoPrivateObuManager private constructor() {
EventTypeEnum.TYPE_USECASE_ID_TJW.poiType -> {
ttsContent = EventTypeEnum.getWarningContent(appId)
if (info.threat_info != null) {
Logger.d(MogoObuConst.TAG_MOGO_OBU, "ttsContent = $ttsContent --alertContent = $alertContent ---info.threat_info.distance = ${info.threat_info.distance} ")
if (info.threat_info.distance.toInt() != 0) {
alertContent = String.format(
EventTypeEnum.getWarningTts(appId),
@@ -310,6 +312,8 @@ class MogoPrivateObuManager private constructor() {
alertContent = "前方拥堵,减速慢行"
}
}
Logger.d(MogoObuConst.TAG_MOGO_OBU, "ttsContent = $ttsContent --alertContent = $alertContent")
}
}