From 43ced392d4a08542ed5c46a911e9da1c80e5cebf Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 23 Nov 2022 18:22:01 +0800 Subject: [PATCH] 213 opt --- .../function/main/MainLauncherActivity.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java index 403a712655..4035d8b426 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java @@ -224,14 +224,14 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis numberA++; if (numberA > 2) { if (!isLongPressA) { - ToastUtils.showShort("方块 长按A -2 "); +// ToastUtils.showShort("方块 长按A -2 "); sendAcc(true, -2); isLongPressA = true; } } } else if (event.getAction() == KeyEvent.ACTION_UP) { if (numberA == 1) { - ToastUtils.showShort("方块 点击A -1 "); +// ToastUtils.showShort("方块 点击A -1 "); sendAcc(true, -1); } numberA = 0; @@ -243,13 +243,13 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis numberB++; if (numberB > 2) { if (!isLongPressB) { - ToastUtils.showShort("方块 长按B 无操作 "); +// ToastUtils.showShort("方块 长按B 无操作 "); isLongPressB = true; } } } else if (event.getAction() == KeyEvent.ACTION_UP) { if (numberB == 1) { - ToastUtils.showShort("方块 单击B 复原 "); +// ToastUtils.showShort("方块 单击B 复原 "); sendAcc(false, 0.0); } numberB = 0; @@ -261,13 +261,13 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis numberC++; if (numberC > 2) { if (!isLongPressC) { - ToastUtils.showShort("方块 长按C 无操作"); +// ToastUtils.showShort("方块 长按C 无操作"); isLongPressC = true; } } } else if (event.getAction() == KeyEvent.ACTION_UP) { if (numberC == 1) { - ToastUtils.showShort("方块 单击C ← 向左变道 "); +// ToastUtils.showShort("方块 单击C ← 向左变道 "); CallerAutoPilotManager.INSTANCE.sendOperatorChangeLaneLeft(); } numberC = 0; @@ -279,13 +279,13 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis numberD++; if (numberD > 2) { if (!isLongPressD) { - ToastUtils.showShort("方块 长按D 无操作"); +// ToastUtils.showShort("方块 长按D 无操作"); isLongPressD = true; } } } else if (event.getAction() == KeyEvent.ACTION_UP) { if (numberD == 1) { - ToastUtils.showShort("方块 单击D → 向右变道 "); +// ToastUtils.showShort("方块 单击D → 向右变道 "); CallerAutoPilotManager.INSTANCE.sendOperatorChangeLaneRight(); } numberD = 0; @@ -297,7 +297,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis numberE++; if (numberE > 2) { if (!isLongPressE) { - ToastUtils.showShort("方块 长按E 鸣笛 "); +// ToastUtils.showShort("方块 长按E 鸣笛 "); CallerAutoPilotManager.INSTANCE.sendOperatorSetHorn(1); if (timerHorn == null) { timerHorn = new Timer(); @@ -314,7 +314,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis } } else if (event.getAction() == KeyEvent.ACTION_UP) { if (numberE == 1) { - ToastUtils.showShort("方块 单击E 开启自动驾驶 "); +// ToastUtils.showShort("方块 单击E 开启自动驾驶 "); // CallerAutoPilotManager.INSTANCE.setControlAutopilotCarAuto(true); CallerAutoPilotManager.INSTANCE.startAutoPilot(CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getAutopilotControlParameters()); }