列车状态

This commit is contained in:
xzb 2023-07-20 16:05:40 +08:00
parent be00086d33
commit 782321b107

View File

@ -53,22 +53,52 @@ message SignalState{
// //
message TrainState{ message TrainState{
// //
string id = 1; string id = 1;
// //
//true - //true -
//false - //false -
bool up = 2; bool up = 2;
//link的索引 //link的索引
string headLinkId = 3; string headLinkId = 3;
//link内的偏移量mm //link内的偏移量mm
int64 headLinkOffset = 4; int64 headLinkOffset = 4;
//link的索引 //link的索引
string tailLinkId = 5; string tailLinkId = 5;
//link内的偏移量mm //link内的偏移量mm
int64 tailLinkOffset = 6; int64 tailLinkOffset = 6;
//link的索引的列表 //link的索引的列表
// //
repeated string occupiedLinkIndex = 7; repeated string occupiedLinkIndex = 7;
//
int32 heartbeat = 8;
//,1=1
int32 slope = 9;
//,1=true0=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;
} }
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////