From 5090f2f75111f336c7dbf2d576cbde95bf524cf2 Mon Sep 17 00:00:00 2001 From: xinfengkun Date: Fri, 22 Sep 2023 15:31:33 +0800 Subject: [PATCH] =?UTF-8?q?[610]=E7=A7=BB=E9=99=A4=E5=88=B9=E8=BD=A6?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autopilot/adapter/MoGoAdasListenerImpl.kt | 7 ------ .../CallerAutopilotActionsListenerManager.kt | 25 ------------------- 2 files changed, 32 deletions(-) diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/adapter/MoGoAdasListenerImpl.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/adapter/MoGoAdasListenerImpl.kt index 65d5554a51..62d5defef4 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/adapter/MoGoAdasListenerImpl.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/adapter/MoGoAdasListenerImpl.kt @@ -1,6 +1,5 @@ package com.mogo.eagle.core.function.datacenter.autopilot.adapter -import android.util.Log import bag_manager.BagManagerOuterClass import chassis.ChassisStatesOuterClass import chassis.VehicleStateOuterClass @@ -164,9 +163,6 @@ class MoGoAdasListenerImpl : OnAdasListener { vehicleState: VehicleStateOuterClass.VehicleState? ) { if (vehicleState != null) { - Log.i( - "xfk", - "底盘 onVehicleState 刹车=${vehicleState.brake}") //转向灯数据 CallerChassisLamplightListenerManager.invokeAutopilotLightSwitchData(vehicleState.light) //刹车灯数据 @@ -256,9 +252,6 @@ class MoGoAdasListenerImpl : OnAdasListener { CallerChassisThrottleStateListenerManager.invokeAutopilotThrottle(it.throttleResponsePosition) } chassisStates.brakeSystemStates?.let { - Log.i( - "xfk", - "底盘 onVehicleState 刹车=${it.brakePedalResponsePosition}") //刹车 CallerChassisBrakeStateListenerManager.invokeAutopilotBrake(it.brakePedalResponsePosition) } diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotActionsListenerManager.kt b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotActionsListenerManager.kt index a5ee26bf19..8eb8870760 100644 --- a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotActionsListenerManager.kt +++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/autopilot/CallerAutopilotActionsListenerManager.kt @@ -1,6 +1,5 @@ package com.mogo.eagle.core.function.call.autopilot -import android.util.Log import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotActionsListener import com.mogo.eagle.core.function.call.base.CallerBase import com.zhjt.mogo.adas.data.bean.UnableLaunchReason @@ -18,7 +17,6 @@ object CallerAutopilotActionsListenerManager : CallerBase { @@ -54,7 +52,6 @@ object CallerAutopilotActionsListenerManager : CallerBase? ) { - Log.i( - "xfk", - "CallerAutopilotActionsListenerManager invokeAutopilotAbility=${CallerAutopilotActionsListenerManager.isAutopilotAbility} ${(if (CallerAutopilotActionsListenerManager.unableAutopilotReasons == null) null else CallerAutopilotActionsListenerManager.unableAutopilotReasons.toString())}") if (isConnected) { var isEquals: Boolean = true if (unableAutopilotReasons != null && this.unableAutopilotReasons != null) { @@ -73,41 +67,22 @@ object CallerAutopilotActionsListenerManager : CallerBase old.sortWith(compareBy(UnableLaunchReason::hashCode)); isEquals = onw.toTypedArray() contentEquals old.toTypedArray() -// Log.i( -// "ddd", -// "都不为null时=${isEquals}=${this.isAutopilotAbility} ${(if (this.unableAutopilotReasons == null) null else this.unableAutopilotReasons.toString())}" -// ) } } } else isEquals = !(unableAutopilotReasons != null || this.unableAutopilotReasons != null) -// Log.i( -// "ddd", -// " 两个List是否相同=${isEquals} 新是否能启动自驾=${isAutopilotAbility} 老是否能启动自驾=${this.isAutopilotAbility} 新List是否为空=${unableAutopilotReasons == null} 老List是否为空=${this.unableAutopilotReasons == null}" -// ) if (this.isAutopilotAbility != isAutopilotAbility || !isEquals) { this.isAutopilotAbility = isAutopilotAbility this.unableAutopilotReasons = unableAutopilotReasons notification() -// printLog("更新数据") } } } private fun notification() { - Log.i( - "xfk", - "CallerAutopilotActionsListenerManager 通知=${isAutopilotAbility} ${(if (unableAutopilotReasons == null) null else unableAutopilotReasons.toString())}") M_LISTENERS.forEach { val listener = it.value listener.onAutopilotAbility(isAutopilotAbility, unableAutopilotReasons) } } - -// fun printLog(tag: String) { -// Log.i( -// "xfk", -// "${tag}=${isAutopilotAbility} ${(if (unableAutopilotReasons == null) null else unableAutopilotReasons.toString())}" -// ) -// } } \ No newline at end of file