[dev_arch_opt_3.0] 添加obu红绿灯消失的状态修改
This commit is contained in:
@@ -781,6 +781,7 @@ class MogoPrivateObuNewManager private constructor() {
|
||||
CallerTrafficLightListenerManager.disableTrafficLight()
|
||||
isShowGreenWave = false
|
||||
isShowRunRedLight = false
|
||||
CallerTrafficLightListenerManager.invokeTrafficLightDisapper()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,6 +125,13 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
|
||||
CallerTrafficLightListenerManager.resetTrafficLightStatus(!hasObuLightStatus)
|
||||
}
|
||||
|
||||
/**
|
||||
* obu数据消失
|
||||
*/
|
||||
override fun onObuTrafficLightDisapper() {
|
||||
hasObuLightStatus = false
|
||||
}
|
||||
|
||||
/**
|
||||
* obu 红绿灯数据
|
||||
*/
|
||||
|
||||
@@ -30,6 +30,11 @@ interface IMoGoTrafficLightListener {
|
||||
*/
|
||||
fun onTrafficLightPlusSource(light: TrafficLightEnum, remain:Int = -1, lightSource: DataSourceType){}
|
||||
|
||||
/**
|
||||
* obu 红绿灯消失
|
||||
*/
|
||||
fun onObuTrafficLightDisapper()
|
||||
|
||||
/**
|
||||
* 展示红绿灯预警
|
||||
*
|
||||
|
||||
@@ -45,6 +45,13 @@ object CallerTrafficLightListenerManager : CallerBase<IMoGoTrafficLightListener>
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeTrafficLightDisapper() {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onObuTrafficLightDisapper()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置红绿灯状态并隐藏
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user