列车状态
This commit is contained in:
parent
be00086d33
commit
782321b107
@ -53,22 +53,52 @@ message SignalState{
|
||||
//列车状态
|
||||
message TrainState{
|
||||
//列车索引
|
||||
string id = 1;
|
||||
string id = 1;
|
||||
//列车运行方向
|
||||
//true - 上行方向运行
|
||||
//false - 下行方向运行
|
||||
bool up = 2;
|
||||
bool up = 2;
|
||||
//车头所在link的索引
|
||||
string headLinkId = 3;
|
||||
string headLinkId = 3;
|
||||
//车头所在link内的偏移量,单位为mm
|
||||
int64 headLinkOffset = 4;
|
||||
int64 headLinkOffset = 4;
|
||||
//车尾所在link的索引
|
||||
string tailLinkId = 5;
|
||||
string tailLinkId = 5;
|
||||
//车尾所在link内的偏移量,单位为mm
|
||||
int64 tailLinkOffset = 6;
|
||||
int64 tailLinkOffset = 6;
|
||||
//列车所占用的link的索引的列表
|
||||
//顺序为从车头到车尾
|
||||
repeated string occupiedLinkIndex = 7;
|
||||
//生命信号
|
||||
int32 heartbeat = 8;
|
||||
//列车所在位置坡度值,1=1‰
|
||||
int32 slope = 9;
|
||||
//列车所在位置坡度走势,1=上坡true,0=下坡false
|
||||
bool upslope = 10;
|
||||
//列车当前运行方向,1 =上行true 0 =下行false
|
||||
bool runningUp = 11;
|
||||
//实际运行阻力(总),1=1KN
|
||||
int32 runningResistanceSum = 12;
|
||||
//阻力1(空气阻力),1=1KN
|
||||
int32 airResistance = 13;
|
||||
//阻力2(坡道阻力),1=1KN
|
||||
int32 rampResistance = 14;
|
||||
//阻力3(曲线阻力),1=1KN
|
||||
int32 curveResistance = 15;
|
||||
//列车运行速度,1=1km/h
|
||||
int32 speed = 16;
|
||||
//头车速传1速度值,1=1km/h
|
||||
int32 headSensorSpeed1 = 17;
|
||||
//头车速传2速度值,1=1km/h
|
||||
int32 headSensorSpeed2 = 18;
|
||||
//尾车速传1速度值,1=1km/h
|
||||
int32 tailSensorSpeed1 = 19;
|
||||
//尾车速度2速度值,1=1km/h
|
||||
int32 tailSensorSpeed2 = 20;
|
||||
//头车雷达速度值,1=1km/h
|
||||
int32 headRadarSpeed = 21;
|
||||
//尾车雷达速度值,1=1km/h
|
||||
int32 tailRadarSpeed = 22;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user