列车btm调整重构

This commit is contained in:
tiger_zhou 2024-08-21 17:03:17 +08:00
parent 30f6530a92
commit 939b7a2604
2 changed files with 7 additions and 4 deletions

View File

@ -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{

View File

@ -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;