diff --git a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java index f05e957166..319a1a79c7 100644 --- a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java +++ b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java @@ -64,6 +64,8 @@ public class MoGoHandAdasMsgManager implements ThreadUtils.getSinglePool().execute(() -> IdentifyDataDrawer.getInstance().renderAdasRecognizedResult(trafficData) ); + } else { + IdentifyDataDrawer.getInstance().clearOldMarker(); } } catch (Exception e) { e.printStackTrace(); diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt index 468b46abf3..f08fd8433a 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt @@ -238,26 +238,16 @@ class DebugSettingView @JvmOverloads constructor( } } - // 初始化 感知数据是否绘制 选择情况 - rgIsDrawIdentifyData.check( - when (FunctionBuildConfig.isDrawIdentifyData) { - true -> { - R.id.rbDraw - } - false -> { - R.id.rbDoNotDraw - } - } - ) - rgIsDrawIdentifyData.setOnCheckedChangeListener { group, checkedId -> - when (checkedId) { - R.id.rbDraw -> { - FunctionBuildConfig.isDrawIdentifyData = true - } - R.id.rbDoNotDraw -> { - FunctionBuildConfig.isDrawIdentifyData = false - } - } + // 初始化 ADAS感知数据是否绘制 选择情况 + tbIsDrawIdentifyData.isChecked = FunctionBuildConfig.isDrawIdentifyData + tbIsDrawIdentifyData.setOnCheckedChangeListener { buttonView, isChecked -> + FunctionBuildConfig.isDrawIdentifyData = isChecked + } + + // 初始化 OBU感知数据是否绘制 选择情况 + tbIsDrawOBUIdentifyData.isChecked = FunctionBuildConfig.isDrawObuIdentifyData + tbIsDrawOBUIdentifyData.setOnCheckedChangeListener { buttonView, isChecked -> + FunctionBuildConfig.isDrawObuIdentifyData = isChecked } // 演示模式,上一次勾选的数据 @@ -269,9 +259,9 @@ class DebugSettingView @JvmOverloads constructor( val isDemoMode = SharedPrefsMgr.getInstance(context).getBoolean(MoGoConfig.IS_DEMO_MODE, false) CallerAutoPilotManager.setDemoMode(isDemoMode) - rbIsDemoMode.isChecked = isDemoMode + tbIsDemoMode.isChecked = isDemoMode // 演示模式 - rbIsDemoMode.setOnCheckedChangeListener { buttonView, isChecked -> + tbIsDemoMode.setOnCheckedChangeListener { buttonView, isChecked -> CallerAutoPilotManager.setDemoMode(isChecked) FunctionBuildConfig.isDemoMode = isChecked SharedPrefsMgr.getInstance(context).putBoolean(MoGoConfig.IS_DEMO_MODE, isChecked) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml index 49881fa8ef..4e048d8fbe 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml @@ -28,7 +28,7 @@ android:padding="@dimen/dp_10" android:text="鹰眼应用信息" android:textColor="#000" - android:textSize="@dimen/dp_34" + android:textSize="@dimen/dp_24" android:textStyle="bold" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:textSize="@dimen/dp_24" /> + android:textSize="@dimen/dp_24" /> + android:textSize="@dimen/dp_24" /> + android:textSize="@dimen/dp_24" /> - + - + android:orientation="horizontal"> - + - +