[6.6.0][启自驾拦截] 优化代码逻辑
This commit is contained in:
@@ -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