From e4c55ea4b6f9f5f875d59fc5bba51fc21bc8ef97 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Thu, 9 May 2024 14:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=8E=A7=E5=88=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 1 + protos/request.proto | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/protos/device_state.proto b/protos/device_state.proto index 6069479..4dc9fab 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -396,6 +396,7 @@ message TrainVobcState { // ATO牵引指令3 bool atoTractionCommand3=74; uint32 mockInfo = 75; //车载接口输出的模拟量信息 +// request.TrainControl.Direction historyDir = 76; //历史行驶方向,用于列车操控时,方向旋钮更改方向时使用,不在前端显示 } // 发给前端的列车状态 diff --git a/protos/request.proto b/protos/request.proto index f051688..4ab9897 100644 --- a/protos/request.proto +++ b/protos/request.proto @@ -202,7 +202,11 @@ message TrainControl{ DIRECTION_KEY_SWITCH = 2;//方向钥匙 HANDLER = 3; //手柄 } - + enum Direction{ + BACKWARD = 0; //后退 + FORWARD = 1; //前进 + NEUTRALWARD = 2;//中位 + } //紧急制动 message EmergentButton{ bool active = 1;