From 05401fc188150829e9a694ffb1ce354ac6dffaba Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Mon, 12 Jun 2023 09:58:15 +0800 Subject: [PATCH] =?UTF-8?q?ncc=E5=8D=8F=E8=AE=AEx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_status.proto | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/protos/device_status.proto b/protos/device_status.proto index 77b6253..45b5369 100644 --- a/protos/device_status.proto +++ b/protos/device_status.proto @@ -126,14 +126,21 @@ message Track{ bool blocked = 11; //设备唯一识别码,一般为设备名称 string id = 12; - //限速 - float speedLimit = 13; + int32 speedLimit = 13; //限速类型 - // 为1时,CBTC限速; - // 为2时,联锁限速; - // 为4时,同时限速。 - int32 limitType = 14; + LimitType limitType = 14; + + //track限速类型 + enum LimitType{ + Unknown = 0; + //为1时,CBTC限速 + Cbtc = 1; + //为2时,联锁限速; + Interlock = 2; + //为4时,同时限速。 + CbtcInterlock = 4; + } } message Platform{