From 3180214b105526abc5bc2c5ea67d431a38863c89 Mon Sep 17 00:00:00 2001 From: walker Date: Fri, 19 Jan 2024 14:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E8=B0=83=E6=95=B4=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E6=8E=A5=E5=8F=A3=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 50 ++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index 63f7820..0ce8ea2 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -84,22 +84,20 @@ message SignalState{ message Signal { //信号机显示枚举 enum Aspect { - //无用值 - Non = 0; - //物理灭灯 - OFF = 1; + //灭灯 + OFF = 0; + //红 + H = 1; //绿灯亮 L = 2; - //红 - H = 3; //黄 - U = 4; + U = 3; //红黄 - HU = 5; + HU = 4; //白 - B = 6; + B = 5; //蓝 - A = 7; + A = 6; } } @@ -580,4 +578,34 @@ message SimulationStatus { SimulationState state = 2; string description = 3; -} \ No newline at end of file +} + +// 仿真在用的第三方接口状态列表 +message SimulationThirdPartyApiService { + enum Type { + // 未定义 + Undefined = 0; + // 与动力学接口服务 + Dynamics = 1; + // 与半实物列车接口服务 + SemiPhysicalTrain = 2; + } + // 服务状态 + enum State { + // 服务正常 + Normal = 0; + // 服务异常 + Error = 1; + } + + // 服务列表 + repeated SimulationThirdPartyApiServiceState states = 1; +} + +// 仿真第三方接口状态 +message SimulationThirdPartyApiServiceState { + // 接口服务类型 + SimulationThirdPartyApiService.Type type = 1; + // 服务状态 + SimulationThirdPartyApiService.State state = 2; +}