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;