调试窗

1、修改工控机协议版本获取方式
2、修改默认值显示
This commit is contained in:
xuxinchao
2022-04-25 15:04:11 +08:00
parent 5956825cea
commit ecde707c81

View File

@@ -1408,7 +1408,11 @@ class DebugSettingView @JvmOverloads constructor(
tvObuSdkVersion.text = "OBU-SDK版本${AppConfigInfo.obuSdkVersion}"
tvAutopilotProtocolVersionInfo.text =
"Autopilot协议版本${CallerAutoPilotManager.getProtocolVersion()}"
tvIpcProtocolVersionInfo.text = "工控机协议版本:${AppConfigInfo.protocolVersionNumber}"
if(AppConfigInfo.protocolVersionNumber==0){
tvIpcProtocolVersionInfo.text="工控机协议版本:未知"
}else{
tvIpcProtocolVersionInfo.text = "工控机协议版本:${AppConfigInfo.protocolVersionNumber}"
}
tvMoGoMapVersion.text = "HD-Map版本${MogoMap.getInstance().mogoMap.mapVersion}"
tvGitBranchInfo.text = "Git分支${AppConfigInfo.workingBranchName}"
tvGitHashInfo.text = "Git-Hash${AppConfigInfo.workingBranchHash}"
@@ -1609,7 +1613,7 @@ class DebugSettingView @JvmOverloads constructor(
carConfigResp.let {
AppConfigInfo.plateNumber = it.plateNumber//车牌号
AppConfigInfo.iPCMacAddress = it.macAddress//工控机MAC地址
AppConfigInfo.protocolVersionNumber = it.protocolVersion.number//工控机协议版本
AppConfigInfo.protocolVersionNumber = it.protocolVersionValue//工控机协议版本
}
}