[8.2.8][需求] AIP开关修改为随时开关,引导线更改为aip开启时使用不同的颜色
This commit is contained in:
@@ -1851,10 +1851,10 @@ class OperatePanelLayout : LinearLayout {
|
||||
val isEnable = CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo().state != IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING
|
||||
CallerLogger.i(TAG, "isEnable=$isEnable 自驾状态=${CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo().state}")
|
||||
//AIP功能
|
||||
preferenceScreen.findPreferenceReal<PreferenceGrayableSwitch>(KEY_AIP_FUNCTION)?.let {
|
||||
it.shouldDisableView = isEnable
|
||||
it.isEnabled = isEnable
|
||||
}
|
||||
// preferenceScreen.findPreferenceReal<PreferenceGrayableSwitch>(KEY_AIP_FUNCTION)?.let {
|
||||
// it.shouldDisableView = isEnable
|
||||
// it.isEnabled = isEnable
|
||||
// }
|
||||
//驾驶模式 - 正常模式
|
||||
preferenceScreen.findPreferenceReal<PreferenceGrayableCheckBox>(KEY_DRIVING_STYLE_NORMAL)?.let {
|
||||
it.shouldDisableView = isEnable
|
||||
|
||||
@@ -402,6 +402,10 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
@Volatile
|
||||
private var mTrajectoryInfoSize = 0
|
||||
|
||||
// 引导线是否是AIP数据
|
||||
@Volatile
|
||||
private var mTrajectoryIsAIPTrajectory = false
|
||||
|
||||
// 全局路径规划点个数
|
||||
@Volatile
|
||||
private var mRouteInfoSize = 0
|
||||
@@ -2339,9 +2343,9 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
"「未知类型」感知数据个数:${mUnknownIdentifyDataSize}\n"
|
||||
|
||||
tvTrajectoryInfoSize.text =
|
||||
"引导线点个数:${mTrajectoryInfoSize}"
|
||||
"引导线点个数:${mTrajectoryInfoSize} 当前轨迹输出:${if (mTrajectoryIsAIPTrajectory) "AIP" else "RBP"}"
|
||||
tvTrajectoryInfoSizeCopy.text =
|
||||
"引导线点个数:${mTrajectoryInfoSize}"
|
||||
"引导线点个数:${mTrajectoryInfoSize} 当前轨迹输出:${if (mTrajectoryIsAIPTrajectory) "AIP" else "RBP"}"
|
||||
|
||||
tvRouteInfoSize.text =
|
||||
"全局路径规划点个数:${mRouteInfoSize}"
|
||||
@@ -2352,6 +2356,7 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
mIdentifyDataSize = 0
|
||||
mUnknownIdentifyDataSize = 0
|
||||
mTrajectoryInfoSize = 0
|
||||
mTrajectoryIsAIPTrajectory = false
|
||||
mRouteInfoSize = 0
|
||||
|
||||
if (FunctionBuildConfig.isDemoMode) {
|
||||
@@ -2570,8 +2575,9 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAutopilotTrajectory(trajectoryInfos: MutableList<MessagePad.TrajectoryPoint>) {
|
||||
mTrajectoryInfoSize = trajectoryInfos.size
|
||||
override fun onAutopilotTrajectory(trajectory: MessagePad.Trajectory) {
|
||||
mTrajectoryIsAIPTrajectory = trajectory.isAIPTrajectory
|
||||
mTrajectoryInfoSize = trajectory.pointsList.size
|
||||
}
|
||||
|
||||
override fun onAutopilotRotting(globalPathResp: MessagePad.GlobalPathResp?) {
|
||||
|
||||
Reference in New Issue
Block a user