From 79376533729d5cd8c12bcc4902e0f7d8c3d48fbf Mon Sep 17 00:00:00 2001 From: zhongchao Date: Thu, 18 May 2023 11:20:05 +0800 Subject: [PATCH] [3.2.0] fix bug of traffic light --- .../function/datacenter/v2x/TrafficLightDispatcher.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt index 1e5ce23be9..bd745e614b 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/v2x/TrafficLightDispatcher.kt @@ -125,12 +125,14 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight if (!enter) { Handler().postDelayed({ hasAiLightStatus = false - hasObuLightStatus = false }, 5000) //如果没有OBU灯态则进行隐藏,如果有OBU灯态,则交由OBU管理 - CallerTrafficLightListenerManager.resetTrafficLightStatus(!hasObuLightStatus) if(!hasObuLightStatus){ + CallerTrafficLightListenerManager.resetTrafficLightStatus(!hasObuLightStatus) hide() + if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) { + CallerTelematicManager.sendMsgToAllClients(TelematicConstant.HIDE_TRAFFIC_LIGHT, "0".toByteArray()) + } } } } @@ -171,9 +173,6 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight private fun hide(){ CallerLogger.d("${SceneConstant.M_OBU}${TAG}", "hide() ---------> ") CallerTrafficLightListenerManager.disableTrafficLight() - if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) { - CallerTelematicManager.sendMsgToAllClients(TelematicConstant.HIDE_TRAFFIC_LIGHT, "0".toByteArray()) - } } /**