魔戒硬件控制开启自动驾驶

This commit is contained in:
lixiaopeng
2022-08-04 14:29:43 +08:00
parent febd0a2bf3
commit d41f3ae686

View File

@@ -187,6 +187,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { //向上长按
// ToastUtils.showShort("长按 ↑↑↑");
// CallerHmiManager.INSTANCE.showMaskView(); //长按出现蒙层,
CallerAutoPilotManager.INSTANCE.setControlAutopilotCarAuto(true);
return true;
} else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { //下和中间键盘长按,减速为-2