[2.15.0]add log of roma inovke map

This commit is contained in:
zhongchao
2023-04-18 11:50:38 +08:00
parent 96e848bbb0
commit b23edd10b8

View File

@@ -13,6 +13,7 @@ import com.mogo.eagle.core.function.api.telematic.IReceivedMsgListener
import com.mogo.eagle.core.function.business.ai.net.AiCloudIdentifyNetWorkModel.Companion.aiCloudIdentifyNetWorkModel
import com.mogo.eagle.core.function.business.identify.MapIdentifySubscriber
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager
import com.mogo.eagle.core.function.call.map.CallerMapRomaListener
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager
import com.mogo.eagle.core.function.call.map.CallerVisualAngleManager.updateLongSightLevel
@@ -55,6 +56,7 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener,
MogoMapListenerHandler.mogoMapListenerHandler.registerHostMapListener(TAG, this)
CallerTelematicListenerManager.addListener(TAG, this)
CallerAutoPilotStatusListenerManager.addListener(TAG, this)
CallerPlanningRottingListenerManager.addListener(TAG,this)
MogoAiCloudSocketManager.getInstance(mContext)
.registerOnMessageListener(
0x040003, //低频数据
@@ -185,11 +187,13 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener,
when {
// 解除漫游限制
visualAngleMode.isRoma -> {
MapBizTrace.log(TAG, "onMapVisualAngleChanged, invoke roma")
showAiCloud.set(true)
FunctionBuildConfig.isDrawIdentifyData = false
}
else -> {
if (showAiCloud.get()) {
MapBizTrace.log(TAG, "onMapVisualAngleChanged, invoke close roma")
closeRoma(false)
showAiCloud.set(false)
FunctionBuildConfig.isDrawIdentifyData = true
@@ -212,11 +216,11 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener,
it.wayPointsList.forEach { loc ->
builder.append(loc.longitude).append(",").append(loc.latitude).append(",")
}
val route = builder.toString()
if (route.endsWith(",")) {
route.substring(0, builder.toString().length - 1)
var romaRoute = builder.toString()
if (romaRoute.endsWith(",")) {
romaRoute = romaRoute.substring(0, builder.toString().length - 1)
}
updateRomaStyle(false, route)
updateRomaStyle(false, romaRoute)
}
}
}