[2.15.0][feat]替换全览模式的V2X数据来源

This commit is contained in:
chenfufeng
2023-03-30 18:15:09 +08:00
parent 86df90cd10
commit c9de9aa286
6 changed files with 137 additions and 7 deletions

View File

@@ -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)
}
}
}