修复TTS逻辑及车模型更替效果
This commit is contained in:
@@ -415,7 +415,7 @@ class MogoPrivateObuManager private constructor() {
|
||||
override fun onCvxV2vThreatIndInfo(info: CvxV2vThreatIndInfo?) {
|
||||
Logger.d(MogoObuConst.TAG_MOGO_OBU, "onCvxV2vThreatIndInfo ------> $info")
|
||||
info?.let {
|
||||
//预警信息,预警类型 threat_level 3
|
||||
//预警信息,预警类型 threat_level 2、3
|
||||
info.threat_info?.let {
|
||||
//预警方位
|
||||
val direction = getMessageDirection(info.ext_info.target_classification)
|
||||
@@ -719,30 +719,28 @@ class MogoPrivateObuManager private constructor() {
|
||||
MogoObuConst.TAG_MOGO_OBU,
|
||||
"appId2 = $appId --- level = $level ---ttsContent = $ttsContent --- alertContent = $alertContent --- direction = $direction"
|
||||
)
|
||||
if (!isStrikeTts) {
|
||||
//显示警告红边
|
||||
mIMoGoWaringProvider?.showWarning(direction)
|
||||
//显示弹框,语音提示
|
||||
mIMoGoWaringProvider?.showWarningV2X(
|
||||
appId,
|
||||
alertContent,
|
||||
ttsContent,
|
||||
appId.toString(),
|
||||
object : WarningStatusListener {
|
||||
override fun onShow() {
|
||||
isStrikeTts = true
|
||||
}
|
||||
|
||||
override fun onDismiss() {
|
||||
isStrikeTts = false
|
||||
}
|
||||
//显示警告红边
|
||||
mIMoGoWaringProvider?.showWarning(direction)
|
||||
//显示弹框,语音提示
|
||||
mIMoGoWaringProvider?.showWarningV2X(
|
||||
appId,
|
||||
alertContent,
|
||||
if (!isStrikeTts) ttsContent else "",
|
||||
(appId + direction.direction).toString(),
|
||||
object : WarningStatusListener {
|
||||
override fun onShow() {
|
||||
isStrikeTts = true
|
||||
}
|
||||
|
||||
override fun onDismiss() {
|
||||
isStrikeTts = false
|
||||
}
|
||||
)
|
||||
//更新周边车辆进行预警颜色变换,车辆实时移动和变色
|
||||
TrafficDataConvertUtils.cvxV2vThreatIndInfo2TrafficData(info)?.let {
|
||||
TrafficMarkerDrawer.updateITrafficThreatLevelInfo(it)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
//更新周边车辆进行预警颜色变换,车辆实时移动和变色
|
||||
TrafficDataConvertUtils.cvxV2vThreatIndInfo2TrafficData(info)?.let {
|
||||
TrafficMarkerDrawer.updateITrafficThreatLevelInfo(it)
|
||||
}
|
||||
}
|
||||
// 删除
|
||||
|
||||
Reference in New Issue
Block a user