[6.5.0]融合红绿灯

This commit is contained in:
xuxinchao
2024-06-28 20:03:43 +08:00
parent 10043d3ba7
commit 6437946ab1
4 changed files with 154 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ package com.mogo.eagle.core.function.datacenter.v2x
import android.content.Context
import android.os.CountDownTimer
import android.os.Handler
import android.util.Log
import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightResult
import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightStatus
import com.mogo.eagle.core.data.biz.trafficlight.currentRoadTrafficLight
@@ -241,7 +242,7 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
"${SceneConstant.M_D_C}${TAG}",
"resetTrafficLight ------> isReset = $isReset ---hasObuLightStatus = $hasObuLightStatus"
)
if (!hasObuLightStatus && !hasAutopilotPerception) {
if (!hasObuLightStatus && !hasAutopilotPerception && !hasFusionLightStatus) {
if (isReset) {
hide("云端重置红绿灯数据", DataSourceType.AICLOUD)
}
@@ -259,6 +260,7 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
if (filterTelematicUnion(sourceType)) {
return
}
Log.i("xuxinchao","hide msg="+msg+" sourceType="+sourceType)
CallerTrafficLightListenerManager.disableTrafficLight()
}
@@ -282,6 +284,10 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
if (filterTelematicUnion(lightSource)) {
return
}
if(currentState == TrafficLightEnum.BLACK || nextState == TrafficLightEnum.BLACK
|| nextTwoState == TrafficLightEnum.BLACK){
return
}
hasObuLightStatus = false
hasAutopilotPerception = false
hasAiLightStatus = false