Compare commits
2 Commits
75b3600a5c
...
a1d348f1c2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1d348f1c2 | ||
|
|
5cdf6b94a9 |
@ -54,13 +54,22 @@ export function getCarStatusType(carzt){
|
|||||||
// 获取档位信号
|
// 获取档位信号
|
||||||
export function getDwStatusType(dw){
|
export function getDwStatusType(dw){
|
||||||
switch (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 1: return [0,0,0,1]
|
||||||
case 2: return [0,0,1,0]
|
case 2: return [0,0,1,0]
|
||||||
case 3: return [0,0,1,1]
|
case 3: return [0,0,1,1]
|
||||||
case 4: return [0,1,0,0]
|
case 4: return [0,1,0,0]
|
||||||
case 5: return [0,1,0,1]
|
case 5: return [0,1,0,1]
|
||||||
|
//R档
|
||||||
case 9: return [1,0,0,1]
|
case 9: return [1,0,0,1]
|
||||||
|
//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]
|
default :return [0,0,0,0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user