From 6bc00faaa1407e6f5569ca38584f82c18a38e41f Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Wed, 17 Jan 2024 13:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E5=8A=9B=E5=AD=A6=E5=88=97=E8=BD=A6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/device_state.proto | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/protos/device_state.proto b/protos/device_state.proto index 4f61955..54452ae 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -205,6 +205,53 @@ message TrainDynamicState { bool udpInterruption = 21; // 加速 float acceleration = 22; + + TrainDynamicConfig trainDynamicConfig = 23; +} +//动力学列车配置 +message TrainDynamicConfig{ + //列车的质量(100=1ton) + int32 mass=1; + //基本阻力参数A + float baseResistanceParamA=2; +// 基本阻力参数B + float baseResistanceParamB=3; +// 基本阻力参数C + float baseResistanceParamC=4; + //曲线阻力参数R1 + float curveResistanceParamR1=5; +// 曲线阻力参数R2 + float curveResistanceParamR2=6; +// 曲线阻力参数R3 + float curveResistanceParamR3=7; + // 曲线阻力参数R4 + float curveResistanceParamR4=8; + //旋转质量参数 + float revolvingMassParam=9; + //是否跳跃 + bool jump=10; + //打滑(%) + float slip=11; + //前溜/后溜(mm)(正数前溜,负数后溜) + int32 slide = 12; + //过标/欠标(mm)(正数过标,负数欠标) + int32 stopSign=13; + //列车A端 + TrainEndsState trainEndsA = 14; + //列车B端 + TrainEndsState trainEndsB = 15; + +} +//列车一端的状态 +message TrainEndsState{ + //速度传感器 + repeated bool speedSensorEnable = 1; + //雷达是否有效 + bool radarEnable = 2; + //雷达测速数值 + float radarCheckSpeed = 3; + //雷达检测时间(秒) + int32 radarCheckTime = 4; } // vobc发过来的列车信息