fix: 优化一个档位

This commit is contained in:
wangzhongjie 2025-05-15 14:58:31 +08:00
parent e164aa710a
commit 5cdf6b94a9

View File

@ -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]
}
}