From 5cdf6b94a9b52c3a51b30a1fe5975c4b001a3c06 Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Thu, 15 May 2025 14:58:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=A1=A3=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/ets/pages/judgeSDK/utils/judgeCommon.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/judgeSDK/utils/judgeCommon.ts b/entry/src/main/ets/pages/judgeSDK/utils/judgeCommon.ts index fb3591dc..bef47155 100644 --- a/entry/src/main/ets/pages/judgeSDK/utils/judgeCommon.ts +++ b/entry/src/main/ets/pages/judgeSDK/utils/judgeCommon.ts @@ -54,14 +54,23 @@ export function getCarStatusType(carzt){ // 获取档位信号 export function getDwStatusType(dw){ switch (dw){ - case 0:return [0,0,0,0] + case 0: return [0,0,0,0] case 1: return [0,0,0,1] case 2: return [0,0,1,0] case 3: return [0,0,1,1] case 4: return [0,1,0,0] case 5: return [0,1,0,1] + //R档 case 9: return [1,0,0,1] - default :return [0,0,0,0] + //P档位 + case 10: return [1,0,1,0] + //D档 + case 11: return [1,0,1,1] + //S档 + case 12: return [1,1,0,0] + //M档 + case 13: return [1,1,0,1] + default :return [0,0,0,0] } }