[6.8.4][Feat]新增瓦片数据日志开关,默认关闭
This commit is contained in:
@@ -338,6 +338,7 @@ import kotlin.collections.set
|
||||
import kotlin.math.abs
|
||||
import kotlin.system.exitProcess
|
||||
import com.mogo.eagle.core.function.hmi.ui.tools.ShowDevicesManagerStateDialog
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbTileFileLog
|
||||
|
||||
|
||||
/**
|
||||
@@ -1188,6 +1189,18 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
CallerMapUIServiceManager.getMapUIController()?.setIsDrawPointCloud(isChecked)
|
||||
CallerSopSettingManager.invokePointCloudListener(isChecked)
|
||||
}
|
||||
tbTileFileLog.setOnCheckedChangeListener { compoundButton, isChecked ->
|
||||
if (!compoundButton.isPressed) {
|
||||
return@setOnCheckedChangeListener
|
||||
}
|
||||
if (isChecked) {
|
||||
mogoMapData.get()?.openTileFileLog(true)
|
||||
mogoMapData.get()?.listenTileFileLog()
|
||||
} else {
|
||||
mogoMapData.get()?.openTileFileLog(false)
|
||||
mogoMapData.get()?.stopListenTileFileLog()
|
||||
}
|
||||
}
|
||||
|
||||
//设置点云大小
|
||||
btnPointCloudSize.setOnClickListener {
|
||||
|
||||
@@ -1904,6 +1904,22 @@
|
||||
app:layout_constraintRight_toRightOf="@id/tbChangeAutoPilotStatus"
|
||||
app:layout_constraintTop_toBottomOf="@id/tbChangeAutoPilotStatus"
|
||||
/>
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tbTileFileLog"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="2dp"
|
||||
android:padding="@dimen/dp_20"
|
||||
android:textColor="#000"
|
||||
android:textOff="开启地图瓦片日志"
|
||||
android:textOn="关闭地图瓦片日志"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintLeft_toRightOf="@id/tbDrawPointCloudData"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tbCarAperture"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnPointCloudSize"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -83,7 +83,8 @@ MOGO_TELEMATIC_VERSION=1.4.7.59
|
||||
MOGO_SKIN_VERSION=1.4.7.50
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 自研地图
|
||||
MAP_SDK_VERSION=3.5.0.0
|
||||
MAP_SDK_VERSION=3.5.0.3
|
||||
MAP_SDK_CORE_VERSION=3.5.0.4
|
||||
MAP_SDK_DATA_VERSION=1.0.0.9
|
||||
MAP_SDK_OPERATION_VERSION=1.1.4.1
|
||||
# websocket
|
||||
|
||||
@@ -65,7 +65,7 @@ dependencies {
|
||||
|
||||
|
||||
implementation 'com.zhidaoauto.map:net:1.0.1'
|
||||
implementation "com.zhidaoauto.machine:mapcore:${MAP_SDK_VERSION}"
|
||||
implementation "com.zhidaoauto.machine:mapcore:${MAP_SDK_CORE_VERSION}"
|
||||
implementation "com.zhidaoauto.machine:mapdata:${MAP_SDK_DATA_VERSION}"
|
||||
|
||||
}
|
||||
|
||||
@@ -129,4 +129,10 @@ interface IMogoData {
|
||||
* 获取路口数据
|
||||
*/
|
||||
fun getCrossRoad(lon: Double, lat: Double, angle: Double): CrossRoad?
|
||||
|
||||
fun listenTileFileLog()
|
||||
|
||||
fun stopListenTileFileLog()
|
||||
|
||||
fun openTileFileLog(isOpen: Boolean)
|
||||
}
|
||||
|
||||
@@ -376,4 +376,16 @@ object MapDataWrapper : IMogoData {
|
||||
}
|
||||
return temp.get()
|
||||
}
|
||||
|
||||
override fun listenTileFileLog() {
|
||||
MapAutoApi.setTileFileCallback(TileFileLogCallback())
|
||||
}
|
||||
|
||||
override fun stopListenTileFileLog() {
|
||||
MapAutoApi.clearTileFileCallback()
|
||||
}
|
||||
|
||||
override fun openTileFileLog(isOpen: Boolean) {
|
||||
MapAutoApi.openTileLog(isOpen)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.mogo.map
|
||||
|
||||
import com.autonavi.nge.hdmap.ITileCallback
|
||||
import com.mogo.eagle.core.data.deva.chain.ChainConstant
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.d
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_MAP
|
||||
import com.zhjt.service.chain.ChainLog
|
||||
|
||||
class TileFileLogCallback: ITileCallback {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "TileFileLogCallback"
|
||||
}
|
||||
|
||||
override fun onLogCallback(msg: String) {
|
||||
invokeNettyConnResult(msg)
|
||||
}
|
||||
|
||||
@ChainLog(
|
||||
linkChainLog = ChainConstant.CHAIN_TYPE_WEAK_NETWORK,
|
||||
linkCode = ChainConstant.CHAIN_SOURCE_WEAK_NETWORK,
|
||||
nodeAliasCode = ChainConstant.CHAIN_CODE_RECORD_WEAK_NETWORK,
|
||||
paramIndexes = [0]
|
||||
)
|
||||
private fun invokeNettyConnResult(msg: String) {
|
||||
d(M_MAP + TAG, " TileFileLogCallback : $msg")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user