[2.15.0]add func

This commit is contained in:
zhongchao
2023-04-14 20:20:49 +08:00
parent 445fb4b393
commit a793844e1a

View File

@@ -1,7 +1,6 @@
package com.mogo.eagle.core.function.business.ai
import android.content.Context
import android.util.Log
import com.mogo.aicloud.services.socket.IMogoOnMessageListener
import com.mogo.aicloud.services.socket.MogoAiCloudSocketManager
import com.mogo.eagle.core.data.config.FunctionBuildConfig
@@ -139,7 +138,6 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener,
}
}
if (!showAiCloud.get()) {
Log.d("emArrow", "closeRoma,showAiCloud is false, return ")
return
}
requestRangeOfIdentify(false)
@@ -170,8 +168,10 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener,
if (dataReceive) {
// 请求地图开始漫游
MogoMapUIController.getInstance().setRomaMode(FunctionBuildConfig.romaModeStyle)
CallerMapRomaListener.invokeMapRoma(true)
sendMsgToServer(TelematicConstant.OPEN_ROMA_STATUS, "3".toByteArray())
} else {
CallerMapRomaListener.invokeMapRoma(false)
sendMsgToServer(TelematicConstant.OPEN_ROMA_STATUS, "4".toByteArray())
}
}, {
@@ -184,18 +184,15 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener,
override fun onMapVisualAngleChanged(visualAngleMode: VisualAngleMode) {
super.onMapVisualAngleChanged(visualAngleMode)
Log.d("emArrow", "onMapVisualAngleChanged , thread : ${Thread.currentThread().name}")
when {
// 解除漫游限制
visualAngleMode.isRoma -> {
showAiCloud.set(true)
Log.d("emArrow", "map call back roma , showAiCloud : ${showAiCloud.get()}")
FunctionBuildConfig.isDrawIdentifyData = false
}
else -> {
if (showAiCloud.get()) {
closeRoma(false)
Log.d("emArrow", "解除漫游限制")
showAiCloud.set(false)
FunctionBuildConfig.isDrawIdentifyData = true
}