[dev_robotaxi-d-app-module_2132_221223_2.13.2_sop] 优化obu红绿灯的状态

This commit is contained in:
lixiaopeng
2023-02-17 09:57:31 +08:00
parent c1364061d2
commit e6d04f5d56
2 changed files with 0 additions and 5 deletions

View File

@@ -152,7 +152,6 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
* obu 红绿灯数据
*/
override fun onObuTrafficLight(light: Int) {
super.onObuTrafficLight(light)
hasObuLightStatus = true
CallerHmiManager.showWarningTrafficLight(light, 3)
}

View File

@@ -8,8 +8,6 @@ object CallerObuTrafficLightListenerManager {
private val M_OBU_TRAFFIC_LIGHT_LISTENER: ConcurrentHashMap<String, IMoGoObuTrafficLightListener> =
ConcurrentHashMap()
var mLight: Int = 0
/**
* 添加监听
* @param tag 标记,用来注销监听使用
@@ -22,7 +20,6 @@ object CallerObuTrafficLightListenerManager {
if (M_OBU_TRAFFIC_LIGHT_LISTENER.containsKey(tag)) {
return
}
listener.onObuTrafficLight(mLight)
M_OBU_TRAFFIC_LIGHT_LISTENER[tag] = listener
}
@@ -53,7 +50,6 @@ object CallerObuTrafficLightListenerManager {
}
fun invokeObuTrafficLight(light: Int) {
this.mLight = light
M_OBU_TRAFFIC_LIGHT_LISTENER.forEach {
val tag = it.key
val listener = it.value