From b14d5add8aa4131b8a3f22e42a575bb80c9b1aa7 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Fri, 13 Oct 2023 10:18:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9E=9A=E4=B8=BE=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 575f38f..70ea052 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -55,6 +55,25 @@ 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 PlatformState{ //站台索引 From e92189e02319a8b02e032a95b7b9e95f9bd71583 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Fri, 13 Oct 2023 10:34:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9E=9A=E4=B8=BE=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) 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{ //站台索引 From 7a24c7aae20f83fa2bba4639066dff9b267f6d38 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Fri, 13 Oct 2023 10:47:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9E=9A=E4=B8=BE=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index 88b1528..7634f58 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -55,7 +55,7 @@ message SignalState{ //信号机索引 string id = 1; } -//信号机显示定义 +//信号机显示枚举定义 message Signal { enum Aspect { //物理灭灯