【将列车状态合并成一个大对象】

This commit is contained in:
weizhihong 2023-12-14 17:56:40 +08:00
parent a0db03b7d4
commit 5875ff33f3

View File

@ -268,7 +268,7 @@ message TrainMapState{
//link运行方向
bool up = 2;
//
float speed = 3;
float initialSpeed = 3;
//,1=1mm
int64 trainLength = 4;
//
@ -291,113 +291,103 @@ message TrainMapState{
int64 controlDelayTime = 13;
//
int32 wheelDiameter = 14;
}
//
message TrainMapDynamicState {
//
string id = 1;
//
// +1
int32 heartbeat = 2;
int32 dynamicHeartbeat = 15;
//link的索引
string headLinkId = 3;
string headLinkId = 16;
//link内的偏移量mm
int64 headLinkOffset = 4;
int64 headLinkOffset = 17;
//link的索引
string tailLinkId = 5;
string tailLinkId = 18;
//link内的偏移量mm
int64 tailLinkOffset = 6;
int64 tailLinkOffset = 19;
//link的索引的列表
//
repeated string occupiedLinkIndex = 7;
repeated string occupiedLinkIndex = 20;
//,1=1
int32 slope = 8;
int32 slope = 21;
//,1=true0=false
bool upslope = 9;
bool upslope = 22;
//,1 =true 0 =false
bool runningUp = 10;
bool runningUp = 23;
//NtotalResistance,1=1KN
float runningResistanceSum = 11;
float runningResistanceSum = 24;
//1NairResistance,1=1KN
float airResistance = 12;
float airResistance = 25;
//2NslopeResistance,1=1KN
float rampResistance = 13;
float rampResistance = 26;
//3线NcurveResistance,1=1KN
float curveResistance = 14;
float curveResistance = 27;
//m/sspeed,1=1km/h
int32 speed = 15;
int32 speed = 28;
//1m/sheadSpeed1,1=1km/h
int32 headSensorSpeed1 = 16;
int32 headSensorSpeed1 = 29;
//2m/sheadSpeed2,1=1km/h
int32 headSensorSpeed2 = 17;
int32 headSensorSpeed2 = 30;
//1m/stailSpeed1,1=1km/h
int32 tailSensorSpeed1 = 18;
int32 tailSensorSpeed1 = 31;
//2m/stailSpeed2,1=1km/h
int32 tailSensorSpeed2 = 19;
int32 tailSensorSpeed2 = 32;
//m/sheadRadarSpeed,1=1km/h
int32 headRadarSpeed = 20;
int32 headRadarSpeed = 33;
//m/stailRadarSpeed,1=1km/h
int32 tailRadarSpeed = 21;
int32 tailRadarSpeed = 34;
//
bool udpInterruption = 22;
bool dynamicInterruption = 35;
//
float acceleration = 23;
}
// vobc发过来的列车信息
message TrainMapVobcState {
//
string id = 1;
float acceleration = 36;
//
// +1
int32 lifeSignal = 2;
int32 lifeSignal = 37;
// TC1激活状态 1=
bool tc1Active = 3;
bool tc1Active = 38;
// TC2激活状态 1=
bool tc2Active = 4;
bool tc2Active = 39;
// 1=
bool directionForward = 5;
bool directionForward = 40;
// 1=
bool directionBackward = 6;
bool directionBackward = 41;
// 1=
bool tractionStatus = 7;
bool tractionStatus = 42;
// 1=
bool brakingStatus = 8;
bool brakingStatus = 43;
// 1=
bool emergencyBrakingStatus = 9;
bool emergencyBrakingStatus = 44;
// AR 1=
bool turnbackStatus = 10;
bool turnbackStatus = 45;
// 1=
bool jumpStatus = 11;
bool jumpStatus = 46;
// ATO模式 1=ATO模式
bool ato = 12;
bool ato = 47;
// FAM模式 1=FAM模式
bool fam = 13;
bool fam = 48;
// CAM模式 1=CAM模式
bool cam = 14;
bool cam = 49;
// 1=
bool tractionSafetyCircuit = 15;
bool tractionSafetyCircuit = 50;
// 1=
bool parkingBrakeStatus = 16;
bool parkingBrakeStatus = 51;
// 1=
bool maintainBrakeStatus = 17;
bool maintainBrakeStatus = 52;
// 100=1KN
int64 tractionForce = 18;
int64 tractionForce = 53;
// 100=1KN
int64 brakeForce = 19;
int64 brakeForce = 54;
// 100=1ton
int64 trainLoad = 20;
int64 trainLoad = 55;
// 1=
bool leftDoorOpenCommand = 21;
bool leftDoorOpenCommand = 56;
// 1=
bool rightDoorOpenCommand = 22;
bool rightDoorOpenCommand = 57;
// 1=
bool leftDoorCloseCommand = 23;
bool leftDoorCloseCommand = 58;
// 1=
bool rightDoorCloseCommand = 24;
bool rightDoorCloseCommand = 59;
// 1=
bool allDoorClose = 25;
bool allDoorClose = 60;
//
bool udpInterruption = 26;
bool vobcInterruption = 61;
}
//
@ -496,10 +486,6 @@ message AllDevicesStatus{
repeated KeyState KeyState = 10;
//
repeated PlatformState platformState = 11;
//
repeated TrainMapDynamicState trainDynamicState = 12;
//
repeated TrainMapVobcState trainVobcState = 13;
}
//