From 806915e9aa8004f85f2a3853d1b3ea9ed32a1143 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Thu, 23 Nov 2023 19:32:05 +0800 Subject: [PATCH] =?UTF-8?q?[6.2.0]=20[och-common]=20[=E6=A8=A1=E6=8B=9F?= =?UTF-8?q?=E9=9D=A0=E8=BE=B9=E5=81=9C=E8=BD=A6]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../och/common/module/debug/DebugDataDispatch.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt b/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt index 5b64188751..c9970599ec 100644 --- a/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt +++ b/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt @@ -16,6 +16,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerChassisDoorStateListene import com.mogo.eagle.core.function.call.autopilot.CallerChassisGnssListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerChassisLamplightListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager +import com.mogo.eagle.core.function.call.autopilot.CallerPlanningActionsListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant @@ -48,6 +49,7 @@ object DebugDataDispatch { const val showDebugView = "showDebugView" const val stateAutopilot = "stateAutopilot" const val stateAutopilotFail = "stateAutopilotFail" + const val stopSite = "stopSite" // adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "location" --es path "1111/11111" // adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "globalPath" --es path "sy73.json" @@ -57,6 +59,7 @@ object DebugDataDispatch { // adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "stateAutopilot" --ei autopilotMode 0 --ei autopilotState 0 // adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "stateAutopilotFail" // adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "trajectoryStation" --ef startLon 116.74053643938474 --ef startLat 40.200487993233246 --ef endLon 116.73876977409685 --ef endLat 40.20179054129441 --el lineID 8 +// adb shell am broadcast -a com.mogo.launcher.debug -f 0x011000000 --es type "stopSite" --ei state 6 --ei action 1 val ROOT_PATH = @@ -146,6 +149,18 @@ object DebugDataDispatch { AutopilotStatistics(1, SystemClock.elapsedRealtime(), null, newBuilder.build()) CallerAutopilotStatisticsListenerManager.invokeAutopilotStatistics(autopilotStatistics) } + stopSite -> { + val state = intent.getIntExtra("state", 0) + val action = intent.getIntExtra("action", 0) + val pncAction = MessagePad.PlanningActionMsg.newBuilder() + val planningaction = MessagePad.ParkScenarioPlanningAction.newBuilder() + val drivingAction = MessagePad.ParkScenarioDrivingAction.newBuilder() + drivingAction.drivingState = MessagePad.ParkScenarioDrivingState.forNumber(state) + drivingAction.drivingAction = MessagePad.DrivingAction.forNumber(action) + planningaction.actionMsg = drivingAction.build() + pncAction.parkScenarioAction = planningaction.build() + CallerPlanningActionsListenerManager.invokePNCActions(pncAction.build()) + } else -> {} } }