列车btm调整重构
This commit is contained in:
parent
30f6530a92
commit
939b7a2604
@ -950,7 +950,7 @@ message TrainControlState{
|
||||
}
|
||||
message DirectionKeySwitch{
|
||||
uint32 id = 1;
|
||||
uint32 val = 2; //0=后,1=前,2=中位
|
||||
uint32 val = 2; //0=后(mm),1=前(AA),2=中位(AM)
|
||||
}
|
||||
//牵引制动手柄
|
||||
message PushHandler{
|
||||
|
@ -196,6 +196,7 @@ message TrainControl{
|
||||
DriverKeySwitch driverKey = 6;
|
||||
DirectionKeySwitch dirKey = 7; //方向
|
||||
PushHandler handler = 8; //手柄
|
||||
DirectionKeySwitch doorKey = 9; //门模式
|
||||
|
||||
|
||||
message ControlButton{
|
||||
@ -206,12 +207,14 @@ message TrainControl{
|
||||
DRIVER_KEY_SWITCH = 1; //驾驶端钥匙
|
||||
DIRECTION_KEY_SWITCH = 2;//方向钥匙
|
||||
HANDLER = 3; //手柄
|
||||
TRAIN_DOOR_MODE_CHANGE =4;//列车门模式
|
||||
}
|
||||
enum Direction{
|
||||
BACKWARD = 0; //后退
|
||||
FORWARD = 1; //前进
|
||||
NEUTRALWARD = 2;//中位
|
||||
BACKWARD = 0; //后退 mm模式
|
||||
FORWARD = 1; //前进 AA模式
|
||||
NEUTRALWARD = 2;//中位 AM模式
|
||||
}
|
||||
|
||||
//紧急制动
|
||||
message EmergentButton{
|
||||
bool active = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user