Merge remote-tracking branch 'origin/master'

This commit is contained in:
thesai 2024-04-03 16:05:07 +08:00
commit 208bcaedcc
3 changed files with 106 additions and 4 deletions

View File

@ -125,7 +125,7 @@ message StationState{
//
message TrainConnState{
bool conn = 1;
bool conn = 1;//
TrainConnType connType = 2;
uint32 TrainControlMapId = 3; //mapId
enum TrainConnType{
@ -293,6 +293,104 @@ message TrainVobcState {
bool udpInterruption = 25;
//
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 messageCounter = 3; // ()0~255
string telegram = 4;//16
int64 distance =5; //BTM天线中心到应答器的距离mm
bool aboveBalise = 6; //BTM天线即将经过应答器
string baliseTelegramForPcSimResend = 7; //pc仿真暂存应答器回复数据
}
//golang float类型数据序列化后丢失精度故使用string
@ -743,12 +844,12 @@ message TrainControlState{
message DriverKeySwitch{
uint32 id = 1;
bool val = 2; //0=1=
request.DriverType dt = 3;
// request.DriverType dt = 3;
}
message DirectionKeySwitch{
uint32 id = 1;
uint32 val = 2; //0=1=,2=
uint32 val = 2; //0=1=,2=
}
//
message PushHandler{

View File

@ -189,7 +189,7 @@ message PsdParam {
//
message TrainControl{
string simulationId = 1; // 仿id
uint32 trainId = 2;
string trainId = 2;
uint32 deviceId = 3;//id
TrainControlType controlType = 4;
EmergentButton button = 5;//

View File

@ -601,6 +601,7 @@ message CarWashing {
uint32 linkSection = 3; //
repeated uint32 centralizedStations = 4; // Id列表;
uint32 duanNum = 5; //
uint32 width = 6; //
}
/** 信标 */
message Beacon {