rebase problem and renote the traffic light code ,wait to know origin logic

This commit is contained in:
zhongchao
2021-11-05 23:16:11 +08:00
committed by liujing
parent c46652636b
commit e5d4f3a10b
4 changed files with 7 additions and 7 deletions

View File

@@ -22,11 +22,11 @@ class TrafficLightHMIManager {
}
fun updateTrafficLight(trafficLightResult: TrafficLightResult) {
if (!initView) {
initView = true
CallerHmiManager.showWarningTrafficLight(0)
}
//todo 需要确认场景是否一致
// if (!initView) {
// initView = true
// CallerHmiManager.showWarningTrafficLight(0)
// }
// val leftTrafficLightStatus = trafficLightResult.laneList.left
// callerHMIToChangeLight(leftTrafficLightStatus)
//

View File

@@ -12,7 +12,6 @@ import com.mogo.eagle.core.function.api.trafficlight.IMoGoTrafficLightListener
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
import com.mogo.eagle.core.function.call.trafficlight.CallTrafficLightListenerManager
import com.mogo.eagle.core.function.v2x.trafficlight.core.MogoTrafficLightManager
import com.mogo.map.location.MogoLocation
import com.mogo.map.navi.IMogoCarLocationChangedListener2
import com.mogo.module.common.MogoApisHandler
import com.mogo.module.common.enums.EventTypeEnum
@@ -91,7 +90,7 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
}
private fun canGetThroughCross(
it: MogoLocation,
it: Location,
trafficLightResult: TrafficLightResult
): Boolean {
return if (CoordinateUtils.calculateLineDistance(