[610][adas]新增故障管理(FM)接口;修改底盘数据来源字段;新增SSM来源字段
This commit is contained in:
@@ -68,6 +68,7 @@ import com.zhjt.mogo.adas.data.sweeper.task.confirm.SweeperTaskConfirm
|
||||
import com.zhjt.mogo.adas.data.sweeper.task.status.SweeperTaskStatus
|
||||
import com.zhjt.mogo.adas.data.sweeper.task.stop.SweeperTaskStop
|
||||
import com.zhjt.service.chain.ChainLog
|
||||
import fault_management.FmInfo
|
||||
import function_state_management.FunctionStates
|
||||
import mogo.telematics.pad.MessagePad
|
||||
import mogo.telematics.pad.MessagePad.TrackedObject
|
||||
@@ -447,6 +448,10 @@ class MoGoAdasListenerImpl : OnAdasListener {
|
||||
invokeSystemStatus(statusInf)
|
||||
}
|
||||
|
||||
override fun onFaultManagementState(header: MessagePad.Header?, fmInfo: FmInfo.FaultResultMsg) {
|
||||
CallerFaultManagementStateListenerManager.invokeFaultManagementState(fmInfo)
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据采集配置应答
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
import fault_management.FmInfo
|
||||
|
||||
/**
|
||||
* 故障管理(FM)接口
|
||||
*/
|
||||
interface IMoGoFaultManagementStateListener {
|
||||
|
||||
fun onFaultManagementState(fmInfo: FmInfo.FaultResultMsg)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.mogo.eagle.core.function.call.autopilot
|
||||
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoFaultManagementStateListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import fault_management.FmInfo
|
||||
|
||||
/**
|
||||
* 故障管理(FM)接口
|
||||
*/
|
||||
object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManagementStateListener>() {
|
||||
|
||||
/**
|
||||
* 后摄像头视频数据
|
||||
*/
|
||||
fun invokeFaultManagementState(fmInfo: FmInfo.FaultResultMsg) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onFaultManagementState(fmInfo)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user