[8.2.6][] 平行驾驶介入及退出提醒以及提醒控制开关
This commit is contained in:
@@ -453,6 +453,14 @@ class MoGoHmiProvider : IMoGoHmiProvider {
|
||||
MogoStatusManager.getInstance().setTaxiUnmanedDriverLineRoutingVerifyMode(TAG, isMode)
|
||||
}
|
||||
|
||||
override fun setRemoteNoticeMode(isMode: Boolean) {
|
||||
MogoStatusManager.getInstance().setRemoteNoticeMode(TAG, isMode)
|
||||
}
|
||||
|
||||
override fun isRemoteNoticeMode(): Boolean {
|
||||
return MogoStatusManager.getInstance().isRemoteNoticeMode
|
||||
}
|
||||
|
||||
override fun registerXiaoZhiStatusChangeListener(listener: OnXiaoZhiStateChangeListener) {
|
||||
xiaozhi.addListener(listener)
|
||||
}
|
||||
|
||||
@@ -1088,6 +1088,7 @@ class OperatePanelLayout : LinearLayout {
|
||||
private const val KEY_WEATHER_EFFECT_SWITCH = "weather_effect_switch"
|
||||
private const val KEY_SYSTEM_BOOT_STATUS_SHOW = "system_boot_status_show"
|
||||
private const val KEY_SELF_ROUTING_VERIFY_MODE = "self_routing_verify_mode"
|
||||
private const val KEY_REMOTE_MODE_SHOW_NOTICE = "remote_mode_show_notice"
|
||||
private const val KEY_UNMANNED_DEMO_PULL_INTERVAL = "unmanned_demo_pull_interval"
|
||||
private const val KEY_SWEEPER_CLOUD_CONTROL = "sweeper_cloud_control"
|
||||
private const val KEY_LOOK_AROUND_360 = "look_around_360"
|
||||
@@ -1140,6 +1141,9 @@ class OperatePanelLayout : LinearLayout {
|
||||
KEY_SELF_ROUTING_VERIFY_MODE -> {
|
||||
return CallerHmiManager.isTaxiUnmanedDriverLineRoutingVerifyMode()
|
||||
}
|
||||
KEY_REMOTE_MODE_SHOW_NOTICE -> {
|
||||
return CallerHmiManager.isRemoteNoticeMode()
|
||||
}
|
||||
KEY_LOOK_AROUND_360 -> {
|
||||
return CallerHmiManager.isM1360LookAroundShowing()
|
||||
}
|
||||
@@ -1177,6 +1181,9 @@ class OperatePanelLayout : LinearLayout {
|
||||
||AppIdentityModeUtils.isShuttleDriver(FunctionBuildConfig.appIdentityMode)
|
||||
||AppIdentityModeUtils.isScheduled(FunctionBuildConfig.appIdentityMode)
|
||||
}
|
||||
KEY_REMOTE_MODE_SHOW_NOTICE -> {
|
||||
AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)
|
||||
}
|
||||
KEY_LOOK_AROUND_360 -> {
|
||||
AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)
|
||||
}
|
||||
@@ -1285,6 +1292,12 @@ class OperatePanelLayout : LinearLayout {
|
||||
}
|
||||
return true
|
||||
}
|
||||
KEY_REMOTE_MODE_SHOW_NOTICE -> {
|
||||
val isChecked = newValue as? Boolean ?: true
|
||||
CallerHmiManager.setRemoteNoticeMode(isChecked)
|
||||
clickEventAnalytics("平行驾驶介入及退出提醒", isChecked)
|
||||
return true
|
||||
}
|
||||
KEY_SELF_ROUTING_VERIFY_MODE -> {
|
||||
val isChecked = newValue as? Boolean ?: false
|
||||
if (isChecked) {
|
||||
|
||||
@@ -792,6 +792,19 @@
|
||||
app:layout_constraintRight_toRightOf="@id/otherGuideLine"
|
||||
app:layout_constraintTop_toBottomOf="@id/scSweeperModeSwitch" />
|
||||
|
||||
<!--平行驾驶是否提醒开关 -->
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/scRemoteModelNotice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_25"
|
||||
android:scaleX="1.2"
|
||||
android:scaleY="1.2"
|
||||
android:text="平行驾驶介入及退出提醒"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="@id/otherGuideLine"
|
||||
app:layout_constraintTop_toBottomOf="@id/scSweeperModeSwitch" />
|
||||
|
||||
<!--天气效果开关-->
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/scWeatherSwitch"
|
||||
|
||||
@@ -39,6 +39,13 @@
|
||||
android:title="自主算路验证模式"
|
||||
android:persistent="false"
|
||||
android:widgetLayout="@layout/layout_operate_panel_preference_widget_switch_compat" />
|
||||
<SwitchPreferenceCompat
|
||||
android:key="remote_mode_show_notice"
|
||||
android:layout="@layout/layout_operate_panel_preference_switch_compat"
|
||||
android:title="平行驾驶介入及退出提醒"
|
||||
android:persistent="false"
|
||||
android:defaultValue="true"
|
||||
android:widgetLayout="@layout/layout_operate_panel_preference_widget_switch_compat" />
|
||||
<SwitchPreferenceCompat
|
||||
android:key="sweeper_cloud_control"
|
||||
android:layout="@layout/layout_operate_panel_preference_switch_compat"
|
||||
|
||||
@@ -227,6 +227,13 @@ interface IMoGoHmiProvider :IProvider{
|
||||
*/
|
||||
fun setTaxiUnmanedDriverLineRoutingVerifyMode(isMode: Boolean)
|
||||
|
||||
/**
|
||||
* taxi无人化司机端 设置是否自主算路验证模式
|
||||
*/
|
||||
fun setRemoteNoticeMode(isMode: Boolean)
|
||||
|
||||
fun isRemoteNoticeMode():Boolean
|
||||
|
||||
/**
|
||||
* 添加小智形象展示的状态监听
|
||||
*/
|
||||
|
||||
@@ -341,6 +341,17 @@ object CallerHmiManager {
|
||||
hmiProviderApi?.setTaxiUnmanedDriverLineRoutingVerifyMode(isMode)
|
||||
}
|
||||
|
||||
/**
|
||||
* taxi无人化司机端 设置是否自主算路验证模式
|
||||
*/
|
||||
fun setRemoteNoticeMode(isMode: Boolean) {
|
||||
hmiProviderApi?.setRemoteNoticeMode(isMode)
|
||||
}
|
||||
|
||||
fun isRemoteNoticeMode(): Boolean{
|
||||
return hmiProviderApi?.isRemoteNoticeMode() ?: true
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加小智形象展示的状态监听
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user