调试窗

增加ADAS日志输出状态初始化状态
This commit is contained in:
xuxinchao
2022-04-18 18:19:35 +08:00
parent 82e0aaa924
commit 00ef4cca6d
4 changed files with 27 additions and 0 deletions

View File

@@ -294,6 +294,13 @@ class MoGoAutopilotProvider :
CupidLogUtils.setEnableLog(isEnableLog)
}
/**
* ADAS日志开启状态
*/
override fun isEnableLog(): Boolean {
return CupidLogUtils.isEnableLog()
}
override fun onDestroy() {
CallerMapDataCollectorManager.unRegisterOnMapCollectTaskListener(this)
}

View File

@@ -599,6 +599,9 @@ class DebugSettingView @JvmOverloads constructor(
tbChangeCurrentCarIcon.isChecked = true
}
//初始化ADAS日志开关状态
tbADASLog.isChecked = CallerAutoPilotManager.isEnableLog()
}
/**

View File

@@ -86,6 +86,11 @@ interface IMoGoAutopilotProvider : IMoGoFunctionServerProvider {
*/
fun setEnableLog(isEnableLog: Boolean)
/**
* ADAS日志开启状态
*/
fun isEnableLog(): Boolean
/**
* speed单位:km/h
*/

View File

@@ -91,10 +91,22 @@ object CallerAutoPilotManager {
providerApi?.stopRecord(type, id)
}
/**
* 设置是否开启ADAS日志
* @param isEnableLog 是否开启日志
*/
fun setEnableLog(isEnableLog: Boolean) {
providerApi?.setEnableLog(isEnableLog)
}
/**
* ADAS日志开启状态
*/
fun isEnableLog(): Boolean{
return providerApi?.isEnableLog()?:false
}
/**
* speed单位km/h
*/