[minibus320][adas] 添加MAP版本常量,鹰眼下发红绿灯数据到工控机接口加入版本判断<MAP290发送,>MAP290将停止发送

This commit is contained in:
xinfengkun
2023-05-19 14:57:39 +08:00
parent 8d146f4263
commit 4e59a0b07c
3 changed files with 23 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightResult
import com.mogo.eagle.core.function.api.datacenter.union.IMoGoTrafficLightListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager
import com.zhidao.support.adas.high.AdasManager
/**
* @author xiaoyuzhou
@@ -26,6 +27,8 @@ class AsyncDataToAutopilotServer private constructor() : IMoGoTrafficLightListen
}
override fun onTrafficLightStatus(trafficLightResult: TrafficLightResult) {
CallerAutoPilotControlManager.sendTrafficLightData(trafficLightResult)
val version = AdasManager.getInstance().mapVersion
if (version > -1 && version < 290)
CallerAutoPilotControlManager.sendTrafficLightData(trafficLightResult)
}
}