[8.1.0][fmd] 调试窗增加调试中:故障诊断功能
This commit is contained in:
@@ -70,6 +70,7 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.arouter
|
||||
implementation project(path: ':core:function-impl:mogo-core-function-map')
|
||||
implementation project(':core:function-impl:mogo-core-function-devatools')
|
||||
implementation project(':core:function-impl:mogo-core-function-devatools-rviz')
|
||||
kapt rootProject.ext.dependencies.aroutercompiler
|
||||
|
||||
implementation rootProject.ext.dependencies.android_start_up
|
||||
|
||||
@@ -25,7 +25,6 @@ import androidx.appcompat.widget.PopupMenu
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.MenuCompat
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import chassis.Chassis
|
||||
import com.mogo.cloud.network.cronet.NetworkQualityListener
|
||||
@@ -102,6 +101,7 @@ import com.mogo.eagle.core.function.call.setting.CallerSopSettingManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
|
||||
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.tools.ShowDevicesManagerStateDialog
|
||||
import com.mogo.eagle.core.function.hmi.ui.utils.HmiActionLog
|
||||
import com.mogo.eagle.core.utilcode.kotlin.currentPadding
|
||||
import com.mogo.eagle.core.utilcode.kotlin.lifecycleOwner
|
||||
@@ -122,7 +122,6 @@ import com.mogo.eagle.core.utilcode.util.DeviceUtils
|
||||
import com.mogo.eagle.core.utilcode.util.FileUtils
|
||||
import com.mogo.eagle.core.utilcode.util.KeyboardUtils
|
||||
import com.mogo.eagle.core.utilcode.util.NetworkUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ParseVersionUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ScreenUtils
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
@@ -140,6 +139,9 @@ import com.mogo.support.device.DevicesManager
|
||||
import com.mogo.support.device.IBindStateChangeListener
|
||||
import com.mogo.tts.base.IMogoTTSCallback
|
||||
import com.zhjt.mogo.adas.data.AdasConstants
|
||||
import com.zhjt.mogo_core_function_devatools.rviz.common.config.SSHAccountConfig
|
||||
import com.zhjt.mogo_core_function_devatools.rviz.dialog.ChangeDefaultConfigDialog
|
||||
import com.zhjt.mogo_core_function_devatools.rviz.ui.activity.FmdAct
|
||||
import com.zhjt.service.chain.ChainLog
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.appVersionInfoLayout
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.brakeThresholdDivider
|
||||
@@ -150,6 +152,8 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.btnConnectServerIp
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnDeleteDB
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnDisconnectIpc
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnDrawFusion
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnEnsureMap
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnFmd
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnHdVisualAdjust
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnIpcReboot
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnPointCloudColor
|
||||
@@ -188,6 +192,7 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.changesight_top_bt
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.clDebugContain
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.commonLayout
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.controlCenterLayout
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.debugCenterLayout
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.deviceBindLayout
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.domainControllerLayout
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.eagleEyeControllerLayout
|
||||
@@ -197,6 +202,7 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.etInputBrakeThresh
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etInputRecordBagTime
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etInputRecordTime
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etLogCatch
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etMapShowName
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etObuIP
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etPointCloudColor
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etPointCloudSize
|
||||
@@ -225,6 +231,7 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.tbChangeCurrentSki
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbControlCenter
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbControlPassengerDriverMonitor
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbCronet
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbDebugCenter
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbDeviceBind
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbDomainController
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbDrawPointCloudData
|
||||
@@ -255,6 +262,7 @@ import kotlinx.android.synthetic.main.view_debug_setting.view.tbSelfLog
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbStartAutopilotCommand
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbStatusCenter
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbTTSCenter
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbTileFileLog
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbTraceEnable
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbVehicleStateController
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.trackerIPCProvider
|
||||
@@ -337,10 +345,6 @@ import kotlin.collections.component4
|
||||
import kotlin.collections.set
|
||||
import kotlin.math.abs
|
||||
import kotlin.system.exitProcess
|
||||
import com.mogo.eagle.core.function.hmi.ui.tools.ShowDevicesManagerStateDialog
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.btnEnsureMap
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.etMapShowName
|
||||
import kotlinx.android.synthetic.main.view_debug_setting.view.tbTileFileLog
|
||||
|
||||
|
||||
/**
|
||||
@@ -803,6 +807,33 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试中心
|
||||
*/
|
||||
tbDebugCenter.setOnCheckedChangeListener { buttonView, isChecked ->
|
||||
if (isChecked) {
|
||||
buttonView.setCompoundDrawables(null, null, iconDown, null)
|
||||
//展示调试中心
|
||||
debugCenterLayout.visibility = View.VISIBLE
|
||||
} else {
|
||||
buttonView.setCompoundDrawables(null, null, iconRight, null)
|
||||
//隐藏日志中心
|
||||
debugCenterLayout.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 故障诊断
|
||||
*/
|
||||
btnFmd.onClick{
|
||||
ActivityUtils.startActivity(FmdAct::class.java)
|
||||
}
|
||||
/**
|
||||
* 故障诊断 长按设置
|
||||
*/
|
||||
btnFmd.setOnLongClickListener {
|
||||
ChangeDefaultConfigDialog(ActivityUtils.getTopActivity()).show()
|
||||
true
|
||||
}
|
||||
/**
|
||||
* 日志中心
|
||||
*/
|
||||
@@ -1532,6 +1563,7 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
btnSetAutopilotIP.setOnClickListener {
|
||||
val autoPilotIp = etAutopilotIP.text.toString()
|
||||
if (autoPilotIp.isNotEmpty()) {
|
||||
SSHAccountConfig.setRosMasterIp(autoPilotIp.split(":", ":").first())
|
||||
CallerAutoPilotControlManager.resetIpAddress(autoPilotIp)
|
||||
} else {
|
||||
ToastUtils.showShort("请输入正确的IP地址")
|
||||
|
||||
@@ -2161,7 +2161,37 @@
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tbDebugCenter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp_10"
|
||||
android:background="@drawable/radio_button_normal_background_right"
|
||||
android:drawableEnd="@drawable/icon_right"
|
||||
android:padding="@dimen/dp_20"
|
||||
android:textOff="调试中心"
|
||||
android:textOn="调试中心"
|
||||
android:textSize="@dimen/dp_24" />
|
||||
<LinearLayout
|
||||
android:id="@+id/debugCenterLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
<Button
|
||||
android:id="@+id/btnFmd"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_20"
|
||||
android:text="故障诊断"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintTop_toTopOf="@id/etTTSContent"
|
||||
app:layout_constraintBottom_toBottomOf="@id/etTTSContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/etTTSContent"
|
||||
app:layout_constraintRight_toRightOf="parent"/>
|
||||
</LinearLayout>
|
||||
<ToggleButton
|
||||
android:id="@+id/tbLogcatCenter"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user