[6.0.0] 任务开始启动运营模式(实际还是美化),任务完成结束运营模式
This commit is contained in:
@@ -259,7 +259,7 @@ object TaxiTaskModel {
|
||||
if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING) {
|
||||
DebugView.printInfoMsg("[自驾状态变化] afterValue=STATUS_AUTOPILOT_RUNNING,meaning=自动驾驶中")
|
||||
mADASStatusCallback?.onAutopilotRunning()
|
||||
if ((QueryCurrentTaskRespBean.isOrderOnTheWayToEnd(mCurrentTaskWithOrder))) {
|
||||
if ((QueryCurrentTaskRespBean.isStartTaskType(mCurrentTaskWithOrder))) {
|
||||
TaxiAnalyticsManager.getInstance().triggerStartAutopilotEvent(
|
||||
isRestartAutopilot,
|
||||
true,
|
||||
@@ -283,7 +283,7 @@ object TaxiTaskModel {
|
||||
DebugView.printInfoMsg("[自驾状态变化] afterValue=STATUS_AUTOPILOT_ENABLE,meaning=可自动驾驶,人工干预状态")
|
||||
if ((FunctionBuildConfig.isDemoMode
|
||||
&& checkCurrentTaskCondition()
|
||||
&& (QueryCurrentTaskRespBean.isStartTaskType(mCurrentTaskWithOrder)
|
||||
&& (QueryCurrentTaskRespBean.isOrderOnTheWayToEnd(mCurrentTaskWithOrder)
|
||||
|| QueryCurrentTaskRespBean.isOrderArriveAtEnd(mCurrentTaskWithOrder))
|
||||
)
|
||||
) {
|
||||
@@ -295,7 +295,7 @@ object TaxiTaskModel {
|
||||
DebugView.printInfoMsg("[自驾状态变化] afterValue=STATUS_AUTOPILOT_DISABLE,meaning=不可自动驾驶")
|
||||
if ((FunctionBuildConfig.isDemoMode
|
||||
&& checkCurrentTaskCondition()
|
||||
&& (QueryCurrentTaskRespBean.isStartTaskType(mCurrentTaskWithOrder)
|
||||
&& (QueryCurrentTaskRespBean.isOrderOnTheWayToEnd(mCurrentTaskWithOrder)
|
||||
|| QueryCurrentTaskRespBean.isOrderArriveAtEnd(mCurrentTaskWithOrder))
|
||||
)
|
||||
) {
|
||||
@@ -309,7 +309,7 @@ object TaxiTaskModel {
|
||||
DebugView.printInfoMsg("[自驾状态变化] afterValue=STATUS_PARALLEL_DRIVING,meaning=平行驾驶中")
|
||||
if (FunctionBuildConfig.isDemoMode) {
|
||||
if ((checkCurrentTaskCondition()
|
||||
&& (QueryCurrentTaskRespBean.isStartTaskType(mCurrentTaskWithOrder)
|
||||
&& (QueryCurrentTaskRespBean.isOrderOnTheWayToEnd(mCurrentTaskWithOrder)
|
||||
|| QueryCurrentTaskRespBean.isOrderArriveAtEnd(mCurrentTaskWithOrder))
|
||||
)
|
||||
) { //订单中
|
||||
@@ -1378,13 +1378,13 @@ object TaxiTaskModel {
|
||||
|
||||
if (endSite != null) {
|
||||
if (QueryCurrentTaskRespBean.isStartTaskType(data)) {
|
||||
// if (FunctionBuildConfig.isDemoMode) {
|
||||
// // 当美化模式(演示模式)开启时: 订单对应自动驾驶开启后,置true
|
||||
// FunctionBuildConfig.isIgnoreConditionsDrawAutopilotTrajectoryData = true
|
||||
// CallerAutoPilotControlManager.setIgnoreConditionDraw(true)
|
||||
// CallerAutoPilotControlManager.setIPCDemoMode(true)
|
||||
// d(TAG, "美化模式-ignore:置为true(更新本地order信息)")
|
||||
// }
|
||||
if (FunctionBuildConfig.isDemoMode) {
|
||||
// 当美化模式(演示模式)开启时: 订单对应自动驾驶开启后,置true
|
||||
FunctionBuildConfig.isIgnoreConditionsDrawAutopilotTrajectoryData = true
|
||||
CallerAutoPilotControlManager.setIgnoreConditionDraw(true)
|
||||
CallerAutoPilotControlManager.setIPCDemoMode(true)
|
||||
d(TAG, "美化模式-ignore:置为true(更新本地order信息)")
|
||||
}
|
||||
updateAutopilotControlParameters()
|
||||
}
|
||||
if (QueryCurrentTaskRespBean.isCompleteTaskType(data)) {
|
||||
|
||||
Reference in New Issue
Block a user