[6.6.0][启自驾拦截] 优化代码逻辑
This commit is contained in:
@@ -214,6 +214,7 @@ object StatusManager {
|
||||
is DoubleFlashStatus -> "双闪"
|
||||
is GearStatus -> "档位"
|
||||
is RouteDownloadStatus -> if (item.state == RouteStart) "轨迹下载中" else "轨迹下载失败"
|
||||
is FSMStatus -> "FSM"
|
||||
else -> "其它"
|
||||
}
|
||||
}
|
||||
@@ -239,7 +240,6 @@ object StatusManager {
|
||||
} else {
|
||||
ret or shl
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return ret
|
||||
|
||||
@@ -105,22 +105,22 @@ object CallerAutoPilotControlManager {
|
||||
if (isShowTip) {
|
||||
val sb = StringBuilder("请检查车辆")
|
||||
if ((exceptionValue and 1) != 0) {
|
||||
sb.append("FSM$")
|
||||
}
|
||||
if ((exceptionValue and (1 shl 1)) != 0) {
|
||||
sb.append("方向盘$")
|
||||
}
|
||||
if (((exceptionValue and (1 shl 1)) != 0)) {
|
||||
if (((exceptionValue and (1 shl 2)) != 0)) {
|
||||
sb.append("油门$")
|
||||
}
|
||||
if ((exceptionValue and (1 shl 2)) != 0) {
|
||||
if ((exceptionValue and (1 shl 3)) != 0) {
|
||||
sb.append("刹车$")
|
||||
}
|
||||
if ((exceptionValue and (1 shl 3)) != 0) {
|
||||
if ((exceptionValue and (1 shl 4)) != 0) {
|
||||
sb.append("双闪$")
|
||||
}
|
||||
if ((exceptionValue and (1 shl 4)) != 0) {
|
||||
sb.append("档位$")
|
||||
}
|
||||
if ((exceptionValue and (1 shl 5)) != 0) {
|
||||
sb.append("FSM$")
|
||||
sb.append("档位$")
|
||||
}
|
||||
if ((exceptionValue and (1 shl 6)) != 0 || ((exceptionValue and (1 shl 7)) != 0)) {
|
||||
if (!sb.contains("$")) {
|
||||
|
||||
Reference in New Issue
Block a user