[6.5.0][道路事件] 移除道路施工的事件的链路日志

This commit is contained in:
renwj
2024-07-22 20:04:16 +08:00
parent 863d16672a
commit 8d575634d8

View File

@@ -436,28 +436,20 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
override fun onAutopilotIdentifyDataUpdate(trafficData: List<TrackedObject>?) {
super.onAutopilotIdentifyDataUpdate(trafficData)
//source: 1 -> 感知数据; 2 -> 融合数据
var hit = false
val shiGong = trafficData?.filter { itx -> (itx.type == 501 || itx.type == 502) && itx.trackedSourceList.find { it.source != 1 } != null }
if (!shiGong.isNullOrEmpty()) {
hit = true
drawShiGong(shiGong)
}
val shiGu = trafficData?.filter { itx -> itx.type == 13 && itx.trackedSourceList.find { it.source != 1 } != null }
if (!shiGu.isNullOrEmpty()) {
hit = true
drawShiGu(shiGu)
}
if (!hit && trafficData?.find { it.type == 501 || it.type == 502 || it.type == 13 } != null) {
V2XBizTrace.onAck(trafficData, "感知类型-V2N", false)
}
}
override fun onAutopilotV2nCongestionEvent(header: Header, rsi: RSI_PB) {
super.onAutopilotV2nCongestionEvent(header, rsi)
V2XBizTrace.onAck("onAutopilotV2nCongestionEvent", rsi)
// V2XBizTrace.onAck("onAutopilotV2nCongestionEvent", rsi)
rsi.rsiFrame?.rtes?.rteDataList?.filter {
it.eventType == 102
}?.takeIf {
@@ -469,7 +461,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
}
private fun drawShiGong(events: List<TrackedObject>) {
V2XBizTrace.onAck(events,"onV2NShiGong", false)
// V2XBizTrace.onAck(events,"onV2NShiGong", false)
if (V2NCarTypeCheck.verifyCarType() && FunctionBuildConfig.v2nMainSwitch && FunctionBuildConfig.isNewV2NData) {
handler.removeMessages(MSG_WHAT_DRAW_SHIGONE)
handler.sendMessage(Message.obtain(handler, MSG_WHAT_DRAW_SHIGONE, events))
@@ -477,7 +469,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
}
private fun drawShiGu(events: List<TrackedObject>) {
V2XBizTrace.onAck(events,"onV2NShiGu", false)
// V2XBizTrace.onAck(events,"onV2NShiGu", false)
if (V2NCarTypeCheck.verifyCarType() && FunctionBuildConfig.v2nMainSwitch && FunctionBuildConfig.isNewV2NData) {
handler.removeMessages(MSG_WHAT_DRAW_SHIGU)
handler.sendMessage(Message.obtain(handler, MSG_WHAT_DRAW_SHIGU, events))
@@ -485,7 +477,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
}
private fun drawYongDu(events: List<MogoV2X.RTEData_PB>) {
V2XBizTrace.onAck(events,"onV2NYongDu", false)
// V2XBizTrace.onAck(events,"onV2NYongDu", false)
if (V2NCarTypeCheck.verifyCarType() && FunctionBuildConfig.v2nMainSwitch && FunctionBuildConfig.isNewV2NData) {
handler.removeMessages(MSG_WHAT_DRAW_YONGDU)
handler.sendMessage(Message.obtain(handler, MSG_WHAT_DRAW_YONGDU, events))