[6.6.0] opt the request cloud traffic light
This commit is contained in:
@@ -3,6 +3,7 @@ package com.mogo.eagle.function.biz.v2x.trafficlight.core
|
||||
import android.content.Context
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.util.Log
|
||||
import com.mogo.eagle.core.data.biz.trafficlight.RoadIDResult
|
||||
import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightControl
|
||||
import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightResult
|
||||
@@ -14,6 +15,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02Lis
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapRoadListenerManager
|
||||
import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_BIZ
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_V2X
|
||||
import com.mogo.eagle.function.biz.v2x.trafficlight.core.TrafficLightThreadHandler.Companion.MSG_WHAT_LOOP_SEARCH_CROSS_ROAD
|
||||
import com.mogo.eagle.function.biz.v2x.trafficlight.core.TrafficLightThreadHandler.Companion.MSG_WHAT_LOOP_SEARCH_TRAFFIC_LIGHT
|
||||
@@ -60,6 +62,13 @@ class MogoTrafficLightManager : IMoGoChassisLocationGCJ02Listener,
|
||||
CallerTrafficLightListenerManager.resetTrafficLightStatus()
|
||||
}
|
||||
firstLoopCrossRoad = false
|
||||
|
||||
val stopLineDis = CallerMapRoadListenerManager.getStopLineDistance()
|
||||
if(stopLineDis!= null && stopLineDis > 200.0){
|
||||
// CallerLogger.i("$M_BIZ$TAG", "红绿灯路口距离 : $stopLineDis")
|
||||
return@TrafficLightThreadHandler
|
||||
}
|
||||
// CallerLogger.i("$M_BIZ$TAG", "红绿灯路口请求 : $stopLineDis")
|
||||
mLocation?.let { it ->
|
||||
trafficLightNetWorkModel.requestRoadID(
|
||||
it.latitude, it.longitude, it.heading,
|
||||
|
||||
Reference in New Issue
Block a user