[2.13.0]消息盒子司机端
This commit is contained in:
@@ -51,41 +51,52 @@ class IPCReportManager : IMoGoAutopilotStatusListener {
|
||||
*/
|
||||
override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) {
|
||||
guardianInfo?.let{
|
||||
//Error 弹窗并有提示音
|
||||
if(it.resultList.contains(RESULT_AUTOPILOT_DISABLE)
|
||||
|| it.resultList.contains(RESULT_AUTOPILOT_SYSTEM_UNSTARTED)
|
||||
|| it.resultList.contains(RESULT_REMOTEPILOT_DISABLE)){
|
||||
if(ipcErrorReportList.size>19){
|
||||
ipcErrorReportList.removeLast()
|
||||
}
|
||||
|| it.resultList.contains(RESULT_REMOTEPILOT_DISABLE)
|
||||
|| it.resultList.contains(RESULT_AUTOPILOT_INFERIOR)
|
||||
|| it.resultList.contains(RESULT_SHOW_WARNING)
|
||||
|| it.resultList.contains(RESULT_REMOTEPILOT_INFERIOR)){
|
||||
val reportEntity = ReportEntity(TimeUtils.millis2String(System.currentTimeMillis()),
|
||||
it.src,it.level,it.msg,it.code,it.resultList,it.actionsList)
|
||||
CallerMsgBoxManager.saveMsgBox(MsgBoxBean(MsgBoxType.REPORT, reportEntity))
|
||||
ipcErrorReportList.add(0, reportEntity)
|
||||
//当前不处于美化模式时,展示监控节点上报
|
||||
if(!FunctionBuildConfig.isDemoMode){
|
||||
if(FunctionBuildConfig.isReportWarning){
|
||||
CallerHmiManager.showIPCReportWindow(ipcErrorReportList,ipcWarningReportList,1)
|
||||
}
|
||||
}
|
||||
}
|
||||
//Warning 不弹窗也不会有提示音
|
||||
else if(it.resultList.contains(RESULT_AUTOPILOT_INFERIOR)
|
||||
|| it.resultList.contains(RESULT_SHOW_WARNING)
|
||||
|| it.resultList.contains(RESULT_REMOTEPILOT_INFERIOR)){
|
||||
if(ipcWarningReportList.size>19){
|
||||
ipcWarningReportList.removeLast()
|
||||
}
|
||||
ipcWarningReportList.add(0,
|
||||
ReportEntity(TimeUtils.millis2String(System.currentTimeMillis()),
|
||||
it.src,it.level,it.msg,it.code,it.resultList,it.actionsList))
|
||||
//当前不处于美化模式时,展示监控节点上报
|
||||
if(!FunctionBuildConfig.isDemoMode){
|
||||
if(FunctionBuildConfig.isReportWarning){
|
||||
CallerHmiManager.showIPCReportWindow(ipcErrorReportList,ipcWarningReportList,2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// //Error 弹窗并有提示音
|
||||
// if(it.resultList.contains(RESULT_AUTOPILOT_DISABLE)
|
||||
// || it.resultList.contains(RESULT_AUTOPILOT_SYSTEM_UNSTARTED)
|
||||
// || it.resultList.contains(RESULT_REMOTEPILOT_DISABLE)){
|
||||
// if(ipcErrorReportList.size>19){
|
||||
// ipcErrorReportList.removeLast()
|
||||
// }
|
||||
// val reportEntity = ReportEntity(TimeUtils.millis2String(System.currentTimeMillis()),
|
||||
// it.src,it.level,it.msg,it.code,it.resultList,it.actionsList)
|
||||
//// CallerMsgBoxManager.saveMsgBox(MsgBoxBean(MsgBoxType.REPORT, reportEntity))
|
||||
// ipcErrorReportList.add(0, reportEntity)
|
||||
// //当前不处于美化模式时,展示监控节点上报
|
||||
// if(!FunctionBuildConfig.isDemoMode){
|
||||
// if(FunctionBuildConfig.isReportWarning){
|
||||
// CallerHmiManager.showIPCReportWindow(ipcErrorReportList,ipcWarningReportList,1)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// //Warning 不弹窗也不会有提示音
|
||||
// else if(it.resultList.contains(RESULT_AUTOPILOT_INFERIOR)
|
||||
// || it.resultList.contains(RESULT_SHOW_WARNING)
|
||||
// || it.resultList.contains(RESULT_REMOTEPILOT_INFERIOR)){
|
||||
// if(ipcWarningReportList.size>19){
|
||||
// ipcWarningReportList.removeLast()
|
||||
// }
|
||||
// ipcWarningReportList.add(0,
|
||||
// ReportEntity(TimeUtils.millis2String(System.currentTimeMillis()),
|
||||
// it.src,it.level,it.msg,it.code,it.resultList,it.actionsList))
|
||||
// //当前不处于美化模式时,展示监控节点上报
|
||||
// if(!FunctionBuildConfig.isDemoMode){
|
||||
// if(FunctionBuildConfig.isReportWarning){
|
||||
// CallerHmiManager.showIPCReportWindow(ipcErrorReportList,ipcWarningReportList,2)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user