From 94413167c079aaa7aa9717a0e4a6281a21c49244 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Wed, 21 Aug 2024 18:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6btm=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index 25a1514..f7f6510 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -931,7 +931,9 @@ message TrainControlState{ map buttons = 1; repeated DriverKeySwitch driverKey = 2; //驾驶端激活 - DirectionKeySwitch dirKey = 3; //接车运行方向 + map switchKeyMap = 3; + +// DirectionKeySwitch dirKey = 3; //接车运行方向 PushHandler pushHandler = 4; //牵引制动手柄 map lightMaps = 5; int64 lineInitTimeStamp12 = 6; //12号线列出初始化时间戳 @@ -948,7 +950,7 @@ message TrainControlState{ // request.DriverType dt = 3; } - message DirectionKeySwitch{ + message SwitchKeyChange{ uint32 id = 1; uint32 val = 2; //0=后(mm),1=前(AA),2=中位(AM) } @@ -966,7 +968,7 @@ message TrainControlState{ message TrainControlStateMsg{ repeated TrainControlState.ControlButton buttons = 1; repeated TrainControlState.DriverKeySwitch driverKey = 2; //驾驶端激活 - TrainControlState.DirectionKeySwitch dirKey = 3; //接车运行方向 + repeated TrainControlState.SwitchKeyChange switchKeys = 3; //接车运行方向 TrainControlState.PushHandler pushHandler = 4; //牵引制动手柄 repeated TrainControlState.ControlLight lights = 5; }