[2.15.0][V2N上车] 添加交通拥堵事件处理逻辑

This commit is contained in:
renwj
2023-03-30 16:41:36 +08:00
parent de979c9ede
commit c8ef1d7a52
4 changed files with 123 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ package com.mogo.eagle.core.function.call.autopilot
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotIdentifyListener
import com.mogo.eagle.core.function.call.base.CallerBase
import mogo.telematics.pad.MessagePad
import mogo.v2x.*
import perception.TrafficLightOuterClass
/**
@@ -60,4 +61,14 @@ object CallerAutopilotIdentifyListenerManager : CallerBase<IMoGoAutopilotIdentif
}
}
/**
* 感知红绿灯
*/
@Synchronized
fun invokeAutopilotV2nCongestionEvent(header: MessagePad.Header, rsi: MogoV2X.RSI_PB) {
M_LISTENERS.forEach {
val listener = it.value
listener.onAutopilotV2nCongestionEvent(header, rsi)
}
}
}