This commit is contained in:
fan 2023-08-28 16:36:31 +08:00
commit 57784d00f2
3 changed files with 131 additions and 52 deletions

View File

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

View File

@ -1,8 +1,12 @@
syntax = "proto3";
option go_package = "./ats/verify/protos/graphicData";
enum PictureType {
/** 平面布置图 */
StationLayout = 0;
/** Psl界面 */
Psl = 1;
/** 继电器柜界面 */
RelayCabinetLayout = 2;
}

View File

@ -0,0 +1,67 @@
syntax = "proto3";
package graphicData;
option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "LayoutGraphicsProto";
option go_package = "./ats/verify/protos/graphicData";
message RelayCabinetGraphicStorage {
Canvas canvas = 1;
repeated RelayCabinet relayCabinets = 2;
repeated Relay relays = 3;
}
message Canvas {
//
int32 width = 1;
//
int32 height = 2;
//
string backgroundColor = 3;
//
Transform viewportTransform = 4;
}
message Point {
// x坐标
float x = 1;
// y坐标
float y = 2;
}
//
message Transform {
//
Point position = 1;
//
Point scale = 2;
//
float rotation = 3;
//
Point skew = 4;
}
//
message ChildTransform {
//
string name = 1;
//
Transform transform = 2;
}
//
message CommonInfo {
string id = 1;
string graphicType = 2;
Transform transform = 3;
repeated ChildTransform childTransforms = 4;
}
message RelayCabinet {
CommonInfo common = 1;
string code = 2;
}
message Relay {
CommonInfo common = 1;
string code = 2;
}