列车状态

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

View File

@ -69,6 +69,36 @@ message TrainState{
//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;
} }
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////