From 0b588f8df8f4ac6d9235dbef8c7fd2b3d53a5895 Mon Sep 17 00:00:00 2001 From: xuxinchao <13522809046@163.com> Date: Fri, 13 May 2022 19:38:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除车速设置 --- .../hmi/ui/setting/DebugSettingView.kt | 59 +------------------ .../main/res/layout/view_debug_setting.xml | 59 +------------------ 2 files changed, 3 insertions(+), 115 deletions(-) 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 7b60224762..c3912d7216 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 @@ -48,16 +48,12 @@ import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager import com.mogo.eagle.core.function.hmi.R import com.mogo.eagle.core.function.hmi.ui.logcatch.ILogViewListener import com.mogo.eagle.core.function.hmi.ui.logcatch.LogInfoView -import com.mogo.eagle.core.function.hmi.ui.tools.AdUpgradeDialog -import com.mogo.eagle.core.function.hmi.ui.tools.DockerRebootDialog import com.mogo.eagle.core.function.hmi.ui.upgrade.UpgradeListAdapter import com.mogo.eagle.core.utilcode.kotlin.onClick import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils -import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.logger.LogLevel import com.mogo.eagle.core.utilcode.mogo.logger.Logger import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant -import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_HMI import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr import com.mogo.eagle.core.utilcode.mogo.toast.TipToast import com.mogo.eagle.core.utilcode.util.* @@ -65,7 +61,6 @@ import com.mogo.map.MogoMap import com.mogo.map.uicontroller.VisualAngleMode import com.mogo.map.uicontroller.VisualAngleMode.* import com.zhidao.easysocket.utils.L -import com.zhjt.mogo_core_function_devatools.trace.TraceManager import kotlinx.android.synthetic.main.view_debug_setting.view.* import mogo.telematics.pad.MessagePad import mogo_msg.MogoReportMsg @@ -116,7 +111,7 @@ class DebugSettingView @JvmOverloads constructor( //日志过滤标签集合 private val sceneMap = mutableMapOf() - + //OBU连接状态 private var obuConnectStatus: Boolean = false @@ -668,41 +663,6 @@ class DebugSettingView @JvmOverloads constructor( CallerAutoPilotManager.disconnectIpc() } - updateSpeedSettingViews() - - /** - * 设置最大速度 - */ - btnSetAutopilotSpeed.onClick { - if (AppConfigInfo.isConnectAutopilot) { - val speedStr = etInputSpeed.text?.toString() - try { - if (speedStr.isNullOrEmpty()) { - ToastUtils.showShort("请输入最大车速") - } - val speed = speedStr?.toInt() - if (speed != null && speed > 0 && speed < 60) { - // 设置自动驾驶速度 - val isSuccess = CallerAutoPilotManager.setAutoPilotSpeed(speed) - when { - isSuccess -> { - ToastUtils.showShort("车速设置成功,立即生效") - } - else -> { - ToastUtils.showShort("设置车速失败,请启动域控制器") - } - } - } else { - ToastUtils.showShort("最大车速应大于0且小于60") - } - } catch (e: Exception) { - ToastUtils.showShort("车速设置失败,请正确设置车速") - } - } else { - ToastUtils.showShort("设置车速失败,请启动域控制器") - } - } - /** * 录制Bag包 */ @@ -725,23 +685,6 @@ class DebugSettingView @JvmOverloads constructor( } - /** - * Bus不可设置自动驾驶速度,而Taxi可以 - */ - private fun updateSpeedSettingViews() { - when { - AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode) -> { - btnSetAutopilotSpeed.visibility = View.GONE - llSpeedLayout.visibility = View.GONE - } - else -> { - btnSetAutopilotSpeed.visibility = View.VISIBLE - llSpeedLayout.visibility = View.VISIBLE - } - } - } - - /** * 设置Hmi点击监听 */ 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 771260a6b6..7205050429 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 @@ -479,7 +479,7 @@ style="@style/DebugSettingText" android:layout_width="match_parent" android:layout_height="wrap_content" - android:minLines="6" + android:minLines="7" app:layout_constraintTop_toTopOf="parent" /> -