Compare commits

...

2 Commits

Author SHA1 Message Date
wangzhongjie
a1d348f1c2 Merge branch '代理服务方案' of http://88.22.24.105:3000/harmony_car/subject-two into 代理服务方案 2025-05-15 14:58:37 +08:00
wangzhongjie
5cdf6b94a9 fix: 优化一个档位 2025-05-15 14:58:31 +08:00

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