增加了模拟开启自动驾驶,方便调试,但需要工控机支持
TODO 下周考虑自己维护状态数据

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-02-18 18:30:01 +08:00
parent 9648f9ce3c
commit acdbd835d8
5 changed files with 45 additions and 1 deletions

View File

@@ -304,6 +304,11 @@ class DebugSettingView @JvmOverloads constructor(
SharedPrefsMgr.getInstance(context).putBoolean(MoGoConfig.IS_DEMO_MODE, isChecked)
}
// 模拟自动驾驶中
tbChangeAutoPilotStatus.setOnCheckedChangeListener { buttonView, isChecked ->
CallerAutoPilotManager.setControlAutopilotCarAuto(isChecked)
}
tbSelfLog.setOnCheckedChangeListener { buttonView, isChecked ->
if (isChecked) {
LogUtils.getConfig().isLogSwitch = false

View File

@@ -244,6 +244,16 @@
app:flexWrap="wrap"
app:justifyContent="flex_start">
<ToggleButton
android:id="@+id/tbChangeAutoPilotStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:gravity="center"
android:textOff="开启模拟自动驾驶中"
android:textOn="关闭模拟自动驾驶中"
android:textSize="@dimen/dp_24" />
<ToggleButton
android:id="@+id/tbIsDrawIdentifyData"
android:layout_width="wrap_content"