From 5aa218e6ef5f79e53d87a801d2964dfecb573029 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 20 Oct 2021 10:09:33 +0800 Subject: [PATCH 1/2] opt log --- .../eagle/core/function/obu/mogo/MogoPrivateObuManager.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt index 9cb670dc94..0c5babffa9 100644 --- a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt +++ b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt @@ -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") } } From 195c4dc827071477949bcd20806061dc9c45d06b Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 20 Oct 2021 10:15:30 +0800 Subject: [PATCH 2/2] modify tts --- .../eagle/core/function/obu/mogo/MogoPrivateObuManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt index 0c5babffa9..945f2dd382 100644 --- a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt +++ b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt @@ -300,12 +300,12 @@ class MogoPrivateObuManager private constructor() { } // 前方拥堵提醒 EventTypeEnum.TYPE_USECASE_ID_TJW.poiType -> { - ttsContent = EventTypeEnum.getWarningContent(appId) + ttsContent = EventTypeEnum.getWarningTts(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), + EventTypeEnum.getWarningContent(appId), info.threat_info.distance.toInt() ) } else {