[6.5.0][道路事件][行人/非机动车] 逻辑优化
This commit is contained in:
@@ -406,9 +406,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
|
||||
} else if (msg.what == MSG_WHAT_DRAW_PEOPLE_CROSS) {
|
||||
val data = msg.obj as? MessagePad.Event ?: return@Callback true
|
||||
AiRoadMarker.aiMakers.getOrPut(data.eventId) {
|
||||
AiRoadMarker()
|
||||
}.apply {
|
||||
val isDriver = AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)
|
||||
val isDriver = AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)
|
||||
val carLocation = CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84()
|
||||
val distance = CoordinateUtils.calculateLineDistance(carLocation.longitude, carLocation.latitude, data.longitude, data.latitude)
|
||||
if (distance > 150) {
|
||||
@@ -428,7 +426,7 @@ internal object V2NIdentifyDrawer: IEventDismissListener {
|
||||
cameraIp.toString(),
|
||||
data.longitude,
|
||||
data.latitude)
|
||||
|
||||
AiRoadMarker()
|
||||
}.also {
|
||||
it.marker(Marker(data.eventId, EventTypeEnumNew.TYPE_SOCKET_ROAD_PEOPLE_CROSS.poiType, data.longitude, data.latitude, 0.0), drawMarker = true, false, isHighFrequency = true)
|
||||
}.receive()
|
||||
|
||||
Reference in New Issue
Block a user