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{