From 0ed6b1d451f617804d608ede072121a0f1e36fb5 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 10 May 2024 16:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=B6=88=E6=81=AF=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index 4dc9fab..adf024b 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -152,12 +152,12 @@ message TrainState{ int64 headOffset = 7; // 设备端口 string devicePort = 8; - // 运行方向指向(区段:A-B,道岔:-> 岔心) - bool pointTo = 9; - // 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小) - bool runDirection = 10; - // 列车车头方向 - bool headDirection = 11; + // 位移方向指向(区段:A-B,道岔:-> 岔心) + bool driftTo = 9; + // 列车运营上下行(公里标 上行:小 -> 大,下行:大 -> 小) + bool trainRunUp = 10; + // 列车车头方向 0=未激活,1= 大 -> 小,2= 小 -> 大 + uint32 trainActiveDirection = 11; // 动力学信息 TrainDynamicState dynamicState = 12; // 半实物信息 @@ -418,11 +418,15 @@ message TrainMapState{ // 设备端口 string devicePort = 8; // 运行方向指向(区段:A-B,道岔:-> 岔心) - bool pointTo = 9; +// bool pointTo = 9; + bool driftTo = 9; // 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小) - bool runDirection = 10; +// bool runDirection = 10; + bool trainRunUp = 10; // 列车车头方向 - bool headDirection = 11; +// bool headDirection = 11; + // 列车车头方向 0= 均为激活;1=向大,2=向小 + uint32 trainActiveDirection = 11; // 所在公里标 int64 trainKilometer = 12; // 控制响应延时