列车控制消息
This commit is contained in:
parent
94d315b21b
commit
47ccdf29a5
@ -890,6 +890,7 @@ message TrainControlState{
|
||||
DirectionKeySwitch dirKey = 3; //接车运行方向
|
||||
PushHandler pushHandler = 4; //牵引制动手柄
|
||||
|
||||
map<string, ControlLight> lightMaps = 5;
|
||||
message ControlButton{
|
||||
uint32 id = 1;
|
||||
bool passed = 3;
|
||||
@ -910,6 +911,18 @@ message TrainControlState{
|
||||
uint32 id = 1;
|
||||
int32 val = 2; // 牵引或制动 大于0是牵引,小于0是制动 整体按照整型传输(*100),使用时除以100
|
||||
}
|
||||
message ControlLight{
|
||||
uint32 id = 1;
|
||||
bool val = 2;
|
||||
}
|
||||
}
|
||||
//返回前端列车控制状态
|
||||
message TrainControlStateMsg{
|
||||
repeated TrainControlState.ControlButton buttons = 1;
|
||||
repeated TrainControlState.DriverKeySwitch driverKey = 2; //驾驶端激活
|
||||
TrainControlState.DirectionKeySwitch dirKey = 3; //接车运行方向
|
||||
TrainControlState.PushHandler pushHandler = 4; //牵引制动手柄
|
||||
repeated TrainControlState.ControlLight lights = 5;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user