From f4aa33193475db040fef3a6d392d7d88988a1680 Mon Sep 17 00:00:00 2001 From: aibingbing Date: Wed, 15 Mar 2023 16:24:39 +0800 Subject: [PATCH] =?UTF-8?q?[sweeper]=20feat:=20=E5=90=AF=E5=8A=A8=E8=87=AA?= =?UTF-8?q?=E9=A9=BE=E5=BF=85=E9=A1=BBN=E6=A1=A3=20+=20=E6=8B=89=E8=B5=B7?= =?UTF-8?q?=E6=89=8B=E5=88=B9=EF=BC=8C=E5=8A=A0=E4=B8=AA=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mogo/och/sweeper/model/SweeperTaskModel.java | 6 ++++++ OCH/mogo-och-sweeper/src/main/res/values/strings.xml | 1 + 2 files changed, 7 insertions(+) diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/model/SweeperTaskModel.java b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/model/SweeperTaskModel.java index 3e50d291cf..5182e28a36 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/model/SweeperTaskModel.java +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/model/SweeperTaskModel.java @@ -28,6 +28,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListener import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger; import com.mogo.eagle.core.utilcode.util.CoordinateUtils; import com.mogo.eagle.core.utilcode.util.NetworkUtils; +import com.mogo.eagle.core.utilcode.util.ThreadUtils; import com.mogo.eagle.core.utilcode.util.ToastUtils; import com.mogo.och.common.module.biz.common.socketmessage.OCHSocketMessageManager; import com.mogo.och.common.module.biz.common.socketmessage.data.OCHOperationalMessage; @@ -38,6 +39,7 @@ import com.mogo.och.common.module.utils.CoordinateCalculateRouteUtil; import com.mogo.och.common.module.utils.NumberFormatUtil; import com.mogo.och.common.module.utils.PinYinUtil; import com.mogo.och.common.module.utils.ToastUtilsOch; +import com.mogo.och.common.module.voice.VoiceNotice; import com.mogo.och.sweeper.R; import com.mogo.och.sweeper.bean.BaseResponse; import com.mogo.och.sweeper.bean.SubInfo; @@ -686,6 +688,10 @@ public class SweeperTaskModel { if (mAutopilotState == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING) { cancelAutoPilot(); startAutopilot(); + + //提示必须是N档,且拉起手刹 才能进入自动驾驶 + VoiceNotice.showNotice(mContext.getString(R.string.sweeper_arrive_auto_start_next_subtask_tips)); + ToastUtils.showLong(mContext.getString(R.string.sweeper_arrive_auto_start_next_subtask_tips)); } } } diff --git a/OCH/mogo-och-sweeper/src/main/res/values/strings.xml b/OCH/mogo-och-sweeper/src/main/res/values/strings.xml index c6e6278402..825239b64f 100644 --- a/OCH/mogo-och-sweeper/src/main/res/values/strings.xml +++ b/OCH/mogo-och-sweeper/src/main/res/values/strings.xml @@ -24,4 +24,5 @@ 下一站: 自动驾驶状态为0不可用 预计等待%d秒 + 请保持档位在N档并拉起手刹后启动自动驾驶