列车控制连接

This commit is contained in:
tiger_zhou 2024-07-19 08:58:02 +08:00
parent 4437185ee9
commit c4b27d48d0

View File

@ -128,12 +128,13 @@ message TrainConnState{
bool conn = 1;//
TrainConnType connType = 2;
uint32 TrainControlMapId = 3; //mapId
string typeName = 4;//
enum TrainConnType{
NONE = 0;//
VOBC = 1; //
PC_SIM = 2; //PC仿真
PC_SIM_A = 3; //PC仿真
PC_SIM_B = 4; //PC仿真
/*PC_SIM_A = 3; //PC仿真
PC_SIM_B = 4; //PC仿真*/
}
}
//
@ -345,20 +346,20 @@ message TrainVobcState {
// ATO发车按钮
bool atoSendTrainBtn = 31;
//
bool trainIntegrity = 32;
// bool trainIntegrity = 32;
// ATP/ATO旁路状态
bool atpOrAtoBypassState = 33;
//
bool trainTractionCuted = 34;
//
bool obstacleCheckBtn = 35;
//
bool driverActiveReportBtn = 36;
//
// bool driverActiveReportBtn = 36;
//
bool brakeHeavyFault = 37;
//
//
bool leftDoorState = 38;
//
//
bool rightDoorState = 39;
//
bool wakeUpBtn = 40;
@ -385,7 +386,7 @@ message TrainVobcState {
// MM人开人关
bool doorModeMM=51;
//
bool outerEmergentBrakeReport = 52;
// bool outerEmergentBrakeReport = 52;
//
bool trainDoorOutLed = 53;
@ -434,6 +435,16 @@ message TrainVobcState {
uint32 mockInfo = 75; //
// atp
bool atpCutSwitch = 76;
//
bool lightEmergencyBrakingStatus = 77;
//
bool lightTractionSafetyCircuit = 78;
//1
bool lightDir1 = 79;
//2
bool lightDir2 = 80;
//
bool lightDriverActive = 81;
// request.TrainControl.Direction historyDir = 76; //使
}
@ -885,14 +896,14 @@ message SimulationThirdPartyApiServiceState {
//
message TrainControlState{
repeated ControlButton buttons = 1;
map<string,ControlButton> buttons = 1;
repeated DriverKeySwitch driverKey = 2; //
DirectionKeySwitch dirKey = 3; //
PushHandler pushHandler = 4; //
map<string, ControlLight> lightMaps = 5;
int64 lineInitTimeStamp12 = 6; //12线
bool line12ConnErr = 7;//12线12线atp故障atp需要重启atp状态情况(atp故障时atp输出数字量返回的数据最后一个直接是0)
uint32 initCount = 8;//
// uint32 initCount = 8;//
message ControlButton{
uint32 id = 1;
bool passed = 3;