[8.1.0][opt]增加自驾进站点的日志
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.mogo.och.bridge.bridge
|
||||
|
||||
import android.util.Log
|
||||
import com.mogo.commons.env.ProjectUtils
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotIdentifyListener
|
||||
@@ -114,7 +115,9 @@ object OchBridgeManager: IMoGoPlanningTrajectoryListener, IMoGoAutopilotIdentify
|
||||
// Saas乘客屏且是自驾中
|
||||
if (ProjectUtils.isSaas() && AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)
|
||||
) {
|
||||
Log.d(TAG, "pncActions-Sass乘客屏收到数据!")
|
||||
if (CallerAutoPilotStatusListenerManager.getState() != IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING) {
|
||||
Log.d(TAG, "pncActions-非自驾中!")
|
||||
CallerMapUIServiceManager.getOverlayManager()?.hidePoint("RenderParkingModel")
|
||||
isHide = true
|
||||
} else {
|
||||
@@ -125,12 +128,14 @@ object OchBridgeManager: IMoGoPlanningTrajectoryListener, IMoGoAutopilotIdentify
|
||||
)
|
||||
lonLatArr?.let {
|
||||
if (it.size < 2) {
|
||||
Log.d(TAG, "pncActions-UTM坐标转换失败!")
|
||||
CallerMapUIServiceManager.getOverlayManager()?.hidePoint("RenderParkingModel")
|
||||
isHide = true
|
||||
return@let
|
||||
}
|
||||
// 只处理100m以内的
|
||||
if (DrivingDirectionUtils.distance(it[0], it[1], getWgs84Lon(), getWgs84Lat()) >= 100) {
|
||||
Log.d(TAG, "pncActions-进站点距离自车过远,不展示!")
|
||||
CallerMapUIServiceManager.getOverlayManager()?.hidePoint("RenderParkingModel")
|
||||
isHide = true
|
||||
return@let
|
||||
@@ -149,7 +154,9 @@ object OchBridgeManager: IMoGoPlanningTrajectoryListener, IMoGoAutopilotIdentify
|
||||
.latitude(it[1])
|
||||
CallerMapUIServiceManager.getOverlayManager()
|
||||
?.showOrUpdatePoint(builder.build())
|
||||
Log.d(TAG, "pncActions-展示进站点!")
|
||||
if (isHide) {
|
||||
Log.d(TAG, "pncActions-显示被隐藏的进站点!")
|
||||
CallerMapUIServiceManager.getOverlayManager()?.showPoint("RenderParkingModel")
|
||||
isHide = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user