列车控制消息

This commit is contained in:
tiger_zhou 2024-07-04 17:26:46 +08:00
parent 94d315b21b
commit 47ccdf29a5

View File

@ -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; // 00 (*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;
}