列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态

This commit is contained in:
tiger_zhou 2024-04-02 18:17:16 +08:00
parent aae4752230
commit 5dd8f8963e

View File

@ -125,7 +125,7 @@ message StationState{
// //
message TrainConnState{ message TrainConnState{
bool conn = 1; bool conn = 1;//
TrainConnType connType = 2; TrainConnType connType = 2;
uint32 TrainControlMapId = 3; //mapId uint32 TrainControlMapId = 3; //mapId
enum TrainConnType{ enum TrainConnType{
@ -293,6 +293,104 @@ message TrainVobcState {
bool udpInterruption = 25; bool udpInterruption = 25;
// //
int64 updateTime = 26; int64 updateTime = 26;
//
bool forceDoorAllow = 27;
//
bool modeLevelDownBtn = 28;
//
bool confirmBtn = 29;
//
bool modeLevelUpBtn = 30;
// ATO发车按钮
bool atoSendTrainBtn = 31;
//
bool trainIntegrity = 32;
// ATP/ATO旁路状态
bool atpOrAtoBypassState = 33;
//
// bool trainTractionCuted = 34;
//
bool obstacleCheckBtn = 35;
//
bool driverActiveReportBtn = 36;
//
bool brakeHeavyFault = 37;
//
bool leftDoorStateBtn = 38;
//
bool rightDoorStateBtn = 39;
//
bool wakeUpBtn = 40;
//
bool overhaulBtn = 41;
//
bool undervoltageBtn = 42;
//
bool sleepBtn = 43;
//
bool emergentHandleDown = 44;
//
bool doorLockState =45;
//
bool lifeDoorState=46;
//
bool trainLowPowerResetState=47;
// ATP上电按钮
bool atpPowerOnBtn=48;
// AA自动开关门
bool doorModeAA=49;
//AM自开人关
bool doorModeAM=50;
// MM人开人关
bool doorModeMM=51;
//
bool outerEmergentBrakeReport = 52;
//
bool trainDoorOutLed = 53;
//ATP控车
bool localAtpControl = 54;
//ATO制动命令输出
bool atoBrakeCommand = 55;
// ATO牵引命令输出
bool atoTractionCommandOut = 56;
//ATO惰行命令输出
bool atoLazyCommandOut = 57;
//// AR灯命令
// bool arLightCommand = 58;
//ATO保持制动
bool atoAlwaysBrake=59;
//ATO开左门
bool atoOpenLeftDoor=60;
//ATO开右门
bool atoOpenRightDoor=61;
//ATO关左门
bool atoCloseLeftDoor=62;
//
bool noSpeedSigle = 63;
//
bool trainStartedLed = 64;
//
bool mostUseBrake = 65;
//
bool splittingOut = 66;
//
bool modeRelay = 67;
//
bool tractionEffective=68;
//
bool brakeEffective=69;
//
bool brakeQuarantine=70;
//
bool stopNotAllBrake=71;
// ATO牵引指令1
bool atoTractionCommand1 = 72;
// ATO牵引指令2
bool atoTractionCommand2=73;
// ATO牵引指令3
bool atoTractionCommand3=74;
uint32 mockInfo = 75; //
} }
// //
@ -446,6 +544,9 @@ message BTMState {
uint32 baliseCount = 2; //)0~255 uint32 baliseCount = 2; //)0~255
uint32 messageCounter = 3; // ()0~255 uint32 messageCounter = 3; // ()0~255
string telegram = 4;//16 string telegram = 4;//16
int64 distance =5; //BTM天线中心到应答器的距离mm
bool aboveBalise = 6; //BTM天线即将经过应答器
string baliseTelegramForPcSimResend = 7; //pc仿真暂存应答器回复数据
} }
//golang float类型数据序列化后丢失精度故使用string //golang float类型数据序列化后丢失精度故使用string
@ -742,12 +843,12 @@ message TrainControlState{
message DriverKeySwitch{ message DriverKeySwitch{
uint32 id = 1; uint32 id = 1;
bool val = 2; //0=1= bool val = 2; //0=1=
request.DriverType dt = 3; // request.DriverType dt = 3;
} }
message DirectionKeySwitch{ message DirectionKeySwitch{
uint32 id = 1; uint32 id = 1;
uint32 val = 2; //0=1=,2= uint32 val = 2; //0=1=,2=
} }
// //
message PushHandler{ message PushHandler{