【将动力学信息提出】

This commit is contained in:
weizhihong 2023-08-25 15:37:55 +08:00
parent 8cb151ed76
commit f7ee15d822

View File

@ -65,67 +65,73 @@ message StationState{
message TrainState{
//
string id = 1;
//
//true -
//false -
//link运行方向
bool up = 2;
//link的索引
string headLinkId = 3;
//link内的偏移量mm
int64 headLinkOffset = 4;
//link的索引
string tailLinkId = 5;
//link内的偏移量mm
int64 tailLinkOffset = 6;
//link的索引的列表
//
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
float runningResistanceSum = 12;
//1,1=1KN
float airResistance = 13;
//2,1=1KN
float rampResistance = 14;
//3线,1=1KN
float curveResistance = 15;
//,1=1km/h
float speed = 16;
//1,1=1km/h
float headSensorSpeed1 = 17;
//2,1=1km/h
float headSensorSpeed2 = 18;
//1,1=1km/h
float tailSensorSpeed1 = 19;
//2,1=1km/h
float tailSensorSpeed2 = 20;
//,1=1km/h
float headRadarSpeed = 21;
//,1=1km/h
float tailRadarSpeed = 22;
//,1=1mm
int64 trainLength = 23;
int64 trainLength = 3;
//
bool show = 24;
bool show = 4;
// ID
string headDeviceId = 25;
string headDeviceId = 5;
//
int64 headOffset = 26;
int64 headOffset = 6;
//
string devicePort = 27;
string devicePort = 7;
// (A-B,-> )
bool pointTo = 28;
bool pointTo = 8;
// -> ->
bool runDirection = 29;
bool runDirection = 9;
//
bool headDirection = 30;
bool headDirection = 10;
//
TrainDynamicState dynamicState = 11;
//
TrainVobcState vobcState = 12;
}
//
message TrainDynamicState {
// +1
int32 heartbeat = 1;
//link的索引
string headLinkId = 2;
//link内的偏移量mm
int64 headLinkOffset = 3;
//link的索引
string tailLinkId = 4;
//link内的偏移量mm
int64 tailLinkOffset = 5;
//link的索引的列表
//
repeated string occupiedLinkIndex = 6;
//,1=1
int32 slope = 7;
//,1=true0=false
bool upslope = 8;
//,1 =true 0 =false
bool runningUp = 9;
//NtotalResistance,1=1KN
float runningResistanceSum = 10;
//1NairResistance,1=1KN
int32 airResistance = 11;
//2NslopeResistance,1=1KN
int32 rampResistance = 11;
//3线NcurveResistance,1=1KN
int32 curveResistance = 12;
//m/sspeed,1=1km/h
float speed = 13;
//1m/sheadSensorSpeed1,1=1km/h
float headSpeed1 = 14;
//2m/sheadSensorSpeed2,1=1km/h
float headSpeed2 = 15;
//1m/stailSensorSpeed1,1=1km/h
float tailSpeed1 = 16;
//2m/stailSensorSpeed2,1=1km/h
float tailSpeed2 = 17;
//m/sheadRadarSpeed,1=1km/h
float headRadarSpeed = 18;
//m/stailRadarSpeed,1=1km/h
float tailRadarSpeed = 19;
}
// vobc发过来的列车信息