diff --git a/protos/device_state.proto b/protos/device_state.proto index 70ea052..88b1528 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -55,25 +55,28 @@ message SignalState{ //信号机索引 string id = 1; } -//信号机显示枚举 -enum SignalAspect{ - //物理灭灯 - SA_OFF = 0; - //物理亮灯 - SA_ON = 1; - //绿灯亮 - SA_L = 2; - //红灯亮 - SA_H = 3; - //黄灯亮 - SA_U = 4; - //红灯且黄灯亮 - SA_HU= 5; - //白灯亮 - SA_B=6; - //蓝灯亮 - SA_A=7; +//信号机显示定义 +message Signal { + enum Aspect { + //物理灭灯 + OFF = 0; + //物理亮灯 + ON = 1; + //绿灯亮 + L = 2; + //红灯亮 + H = 3; + //黄灯亮 + U = 4; + //红灯且黄灯亮 + HU= 5; + //白灯亮 + B=6; + //蓝灯亮 + A=7; + } } + //站台状态 message PlatformState{ //站台索引