[6.2.0]
[och-common] [模拟靠边停车]
This commit is contained in:
@@ -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 -> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user