【修改列车状态】

This commit is contained in:
weizhihong 2023-12-14 16:31:36 +08:00
parent b68103fcf0
commit 62ef7c7f4d

View File

@ -261,6 +261,147 @@ message TrainVobcState {
int64 updateTime = 26;
}
//
message TrainMapState{
//
string id = 1;
//link运行方向
bool up = 2;
//
float speed = 3;
//,1=1mm
int64 trainLength = 4;
//
bool show = 5;
// ID
uint32 headDeviceId = 6;
//
int64 headOffset = 7;
//
string devicePort = 8;
// (A-B,-> )
bool pointTo = 9;
// -> ->
bool runDirection = 10;
//
bool headDirection = 11;
//
int64 trainKilometer = 12;
//
int64 controlDelayTime = 13;
//
int32 wheelDiameter = 14;
}
//
message TrainMapDynamicState {
//
string id = 1;
// +1
int32 heartbeat = 2;
//link的索引
string headLinkId = 3;
//link内的偏移量mm
int64 headLinkOffset = 4;
//link的索引
string tailLinkId = 5;
//link内的偏移量mm
int64 tailLinkOffset = 6;
//link的索引的列表
//
repeated string occupiedLinkIndex = 7;
//,1=1
int32 slope = 8;
//,1=true0=false
bool upslope = 9;
//,1 =true 0 =false
bool runningUp = 10;
//NtotalResistance,1=1KN
float runningResistanceSum = 11;
//1NairResistance,1=1KN
float airResistance = 12;
//2NslopeResistance,1=1KN
float rampResistance = 13;
//3线NcurveResistance,1=1KN
float curveResistance = 14;
//m/sspeed,1=1km/h
int32 speed = 15;
//1m/sheadSpeed1,1=1km/h
int32 headSensorSpeed1 = 16;
//2m/sheadSpeed2,1=1km/h
int32 headSensorSpeed2 = 17;
//1m/stailSpeed1,1=1km/h
int32 tailSensorSpeed1 = 18;
//2m/stailSpeed2,1=1km/h
int32 tailSensorSpeed2 = 19;
//m/sheadRadarSpeed,1=1km/h
int32 headRadarSpeed = 20;
//m/stailRadarSpeed,1=1km/h
int32 tailRadarSpeed = 21;
//
bool udpInterruption = 22;
//
float acceleration = 23;
}
// vobc发过来的列车信息
message TrainMapVobcState {
//
string id = 1;
// +1
int32 lifeSignal = 2;
// TC1激活状态 1=
bool tc1Active = 3;
// TC2激活状态 1=
bool tc2Active = 4;
// 1=
bool directionForward = 5;
// 1=
bool directionBackward = 6;
// 1=
bool tractionStatus = 7;
// 1=
bool brakingStatus = 8;
// 1=
bool emergencyBrakingStatus = 9;
// AR 1=
bool turnbackStatus = 10;
// 1=
bool jumpStatus = 11;
// ATO模式 1=ATO模式
bool ato = 12;
// FAM模式 1=FAM模式
bool fam = 13;
// CAM模式 1=CAM模式
bool cam = 14;
// 1=
bool tractionSafetyCircuit = 15;
// 1=
bool parkingBrakeStatus = 16;
// 1=
bool maintainBrakeStatus = 17;
// 100=1KN
int64 tractionForce = 18;
// 100=1KN
int64 brakeForce = 19;
// 100=1ton
int64 trainLoad = 20;
// 1=
bool leftDoorOpenCommand = 21;
// 1=
bool rightDoorOpenCommand = 22;
// 1=
bool leftDoorCloseCommand = 23;
// 1=
bool rightDoorCloseCommand = 24;
// 1=
bool allDoorClose = 25;
//
bool udpInterruption = 26;
//
int64 updateTime = 27;
}
//
message ReplyState {
//
@ -336,7 +477,7 @@ message VariationStatus{
//仿
message AllDevicesStatus{
//
repeated TrainState trainState = 1;
repeated TrainMapState trainState = 1;
//
repeated SwitchState switchState = 2;
//
@ -357,6 +498,10 @@ message AllDevicesStatus{
repeated KeyState KeyState = 10;
//
repeated PlatformState platformState = 11;
//
repeated TrainMapDynamicState trainDynamicState = 12;
//
repeated TrainMapVobcState trainVobcState = 13;
}
//