From bdd66d8625e76afb23f501de306224d35a8958d1 Mon Sep 17 00:00:00 2001 From: walker Date: Mon, 22 Jan 2024 15:55:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E6=AE=B5=E6=93=8D=E4=BD=9C=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/request.proto | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/protos/request.proto b/protos/request.proto index 914398e..d312ab0 100644 --- a/protos/request.proto +++ b/protos/request.proto @@ -107,15 +107,31 @@ message SignalParam { message Section { //区段操作 enum Operation { - SetDrst = 0;//设置计轴直接复位 - CancelDrst = 1;//取消计轴直接复位 - SetPdrst = 2;//设置计轴预复位 - CancelPdrst = 3;//取消计轴预复位 + Undefined = 0; // 未定义 + SetParams = 1; // 设置参数 + // SetDrst = 0;//设置计轴直接复位 + // CancelDrst = 1;//取消计轴直接复位 + // SetPdrst = 2;//设置计轴预复位 + // CancelPdrst = 3;//取消计轴预复位 SetFaultOcc = 4; //设置故障占用 - CancelFaultOcc = 5; //取消故障占用 + // CancelFaultOcc = 5; //取消故障占用 } } +message SectionOperationReq { + string simulationId = 1; // 仿真id + int32 mapId = 2; // 图id + uint32 deviceId = 3; // 设备id + Section.Operation operation = 4; // 区段操作 + SectionParam param = 5; // 区段参数,当operation为SetParams时有效 +} + +message SectionParam { + // bool faultOcc = 1; // 故障占用 + bool mockDrst = 2; // 模拟CI计轴复位(临时) + bool mockPdrst = 3; // 模拟CI计轴预复位(临时) +} + //屏蔽门 message Psd { enum Operation {