[2.15.0][feat]替换全览模式的V2X数据来源
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.mogo.eagle.core.function.call.autopilot
|
||||
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoV2XListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import mogo.v2x.MogoV2X
|
||||
|
||||
/**
|
||||
* 工控机发过来的V2X数据
|
||||
*/
|
||||
object CallerV2XListenerManager : CallerBase<IMoGoV2XListener>() {
|
||||
|
||||
/**
|
||||
* 分发主车路径全局事件
|
||||
*/
|
||||
fun dispatchV2nGlobalPathEvents(eventCount: Int, construct: MogoV2X.RSI_PB?, triangle: MogoV2X.RSI_PB?, congestion: MogoV2X.RSI_PB?, parkingViolation: MogoV2X.RSM_PB?) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onV2nGlobalPathEvents(eventCount, construct, triangle, congestion, parkingViolation)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user