This commit is contained in:
weizhihong 2023-11-01 16:00:39 +08:00
commit ebfb67be9c
2 changed files with 70 additions and 43 deletions

View File

@ -30,11 +30,11 @@ message LinkState{
message SectionState{
//
string id = 1;
//
SectionType type = 2;
//
//true-false-
bool occupied = 3;
//
bool axleFault = 4;
}
//
@ -49,6 +49,28 @@ message SwitchState{
bool dw = 4;
//
bool fw = 5;
// ()
bool force = 6;
//
bool sb = 7;
//
bool dwsb = 8;
//
bool fwsb = 9;
//
bool jc = 10;
//
bool qdc = 11;
//
bool qfc = 12;
//
bool qyc = 13;
//
bool dc = 14;
//
bool fc = 15;
//
bool yc = 16;
}
//
message SignalState{

View File

@ -16,6 +16,9 @@ message Turnout {
CancelSB = 6; //
SetJC = 7; //
CancelJC = 8; //
ForceDw = 9; //
ForceFw = 10; //
CancelForce = 11; //
}
}
@ -28,31 +31,33 @@ message TurnoutOperationReq {
}
//
message Signal{
message Signal {
//
enum Operation{
enum Operation {
Undefined = 0; //
Display = 1; //,绿
LightHFaultDs = 2;//
LightUFaultDs = 3;//
LightLFaultDs = 4;//绿
LightAFaultDs = 5;//
LightBFaultDs = 6;//
LightHCancelDs = 7;//
LightUCancelDs = 8;//
LightLCancelDs = 9;//绿
LightACancelDs = 10;//
LightBCancelDs = 11;//
LightHFaultDs = 2; //
LightUFaultDs = 3; //
LightLFaultDs = 4; //绿
LightAFaultDs = 5; //
LightBFaultDs = 6; //
LightHCancelDs = 7; //
LightUCancelDs = 8; //
LightLCancelDs = 9; //绿
LightACancelDs = 10; //
LightBCancelDs = 11; //
}
}
//
message Section{
//
enum AxleOperation{
Drst = 0;//
Pdrst = 1;//
TrainIn = 2;//
TrainOut = 3;//
message Section {
//
enum Operation {
SetDrst = 0;//
CancelDrst = 1;//
SetPdrst = 2;//
CancelPdrst = 3;//
SetFaultOcc = 4; //
CancelFaultOcc = 5; //
}
}