diff --git a/protos/device_state.proto b/protos/device_state.proto index 15ab9b6..25e6358 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -890,6 +890,7 @@ message TrainControlState{ DirectionKeySwitch dirKey = 3; //接车运行方向 PushHandler pushHandler = 4; //牵引制动手柄 + map 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; }