[6.7.0][启自驾指引] 添加由于其它原因导致启不了自驾的逻辑判断

This commit is contained in:
renwj
2024-10-21 19:58:50 +08:00
parent b2a9d9626f
commit 62bf194ec0
5 changed files with 66 additions and 2 deletions

View File

@@ -124,12 +124,16 @@ object CallerAutoPilotControlManager {
if ((exceptionValue and (1 shl 5)) != 0) {
sb.append("档位$")
}
if ((exceptionValue and (1 shl 6)) != 0 || ((exceptionValue and (1 shl 7)) != 0)) {
if ((exceptionValue and (1 shl 6)) != 0) {
sb.append("未知$")
}
if ((exceptionValue and (1 shl 7)) != 0 || ((exceptionValue and (1 shl 8)) != 0)) {
if (!sb.contains("$")) {
sb.setLength(0)
sb.append("轨迹未就绪,请稍后重试")
}
}
val voiceText = sb.toString().let { str ->
val count = str.count { it == '$' }
if (count == 1) {