From 3f409d717bab334f3d39a5af043c5f00881eaddd Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Mon, 16 Oct 2023 11:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index d2ed2ae..be4b57b 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -55,7 +55,7 @@ message SignalState{ //信号机索引 string id = 1; //信号机的灯列表 - repeated Signal.Light light = 2; + repeated Signal.Aspect aspect = 2; } //信号机显示定义 message Signal { @@ -63,27 +63,18 @@ message Signal { enum Aspect { //物理灭灯 OFF = 0; - //物理亮灯 - ON = 1; //绿灯亮 - L = 2; + L = 1; //红 - H = 3; + H = 2; //黄 - U = 4; + U = 3; //红黄 - HU= 5; + HU= 4; //白 - B=6; + B=5; //蓝 - A=7; - } - //信号机中的灯 - message Light{ - //灯颜色(单色) - Aspect color = 1; - //true-显示信号,false-不显示信号 - bool display = 2; + A=6; } }