From 47ccdf29a59cf9e922af1311e09268e4763252c5 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Thu, 4 Jul 2024 17:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=8E=A7=E5=88=B6=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 15ab9b6..25e6358 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -890,6 +890,7 @@ message TrainControlState{ DirectionKeySwitch dirKey = 3; //接车运行方向 PushHandler pushHandler = 4; //牵引制动手柄 + map lightMaps = 5; message ControlButton{ uint32 id = 1; bool passed = 3; @@ -910,6 +911,18 @@ message TrainControlState{ uint32 id = 1; int32 val = 2; // 牵引或制动 大于0是牵引,小于0是制动 整体按照整型传输(*100),使用时除以100 } + message ControlLight{ + uint32 id = 1; + bool val = 2; + } +} +//返回前端列车控制状态 +message TrainControlStateMsg{ + repeated TrainControlState.ControlButton buttons = 1; + repeated TrainControlState.DriverKeySwitch driverKey = 2; //驾驶端激活 + TrainControlState.DirectionKeySwitch dirKey = 3; //接车运行方向 + TrainControlState.PushHandler pushHandler = 4; //牵引制动手柄 + repeated TrainControlState.ControlLight lights = 5; }