rts-sim-testing-message/protos/common_data.proto

79 lines
2.1 KiB
Protocol Buffer
Raw Normal View History

2024-01-17 17:02:17 +08:00
syntax = "proto3";
package common;
//option java_package = "club.joylink.bjrtss.ats.verify.protos";
//option java_outer_classname = "LayoutGraphicsProto";
option go_package = "joylink.club/bj-rtsts-server/dto/common_proto";
//动力学列车配置
message TrainDynamicConfig{
//列车的质量100=1ton
// int32 mass=1;
//基本阻力参数A
2024-01-18 17:09:20 +08:00
float davisParamA=1;
2024-01-17 17:02:17 +08:00
// 基本阻力参数B
2024-01-18 17:09:20 +08:00
float davisParamB=2;
2024-01-17 17:02:17 +08:00
// 基本阻力参数C
2024-01-18 17:09:20 +08:00
float davisParamC=3;
2024-01-17 17:02:17 +08:00
//曲线阻力参数R1
float curveResistanceParamR1=4;
// 曲线阻力参数R2
float curveResistanceParamR2=5;
// 曲线阻力参数R3
float curveResistanceParamR3=6;
// 曲线阻力参数R4
float curveResistanceParamR4=7;
//旋转质量参数
float revolvingMassParam=8;
2024-04-11 16:44:48 +08:00
2024-01-17 17:02:17 +08:00
//是否跳跃
bool jump=9;
2024-01-29 13:24:53 +08:00
//打滑加速度(m/s) 默认0
float slipA=10;
// 打滑冲击率(m/s) 默认0
float slipR=11;
// 打滑持续时间ms 默认0
int32 slipD=12;
// 空转加速度m/s2默认值0
float idlingA = 14;
// 空转冲击率m/s3默认值0
float idlingR = 15;
// 空转持续时间ms默认值0
int32 idlingD = 16;
2024-01-17 17:02:17 +08:00
//过标/欠标mm正数过标负数欠标
2024-01-29 13:24:53 +08:00
int32 stopSign=17;
//前溜/后溜m/s默认0
float slide = 18;
2024-04-11 16:44:48 +08:00
int32 trainLoad = 19 ;//列车载荷
2024-01-17 17:02:17 +08:00
}
//列车一端的状态
message TrainEndsState{
//速度传感器
bool speedSensorEnableA = 1;
bool speedSensorEnableB = 2;
//雷达是否有效
bool radarEnable = 3;
2024-01-18 16:04:56 +08:00
//雷达测速差值(米/秒)
float radarCheckSpeedDiff = 4;
2024-01-17 17:02:17 +08:00
//雷达检测时间(秒)
int32 radarCheckTime = 5;
2024-01-26 17:57:35 +08:00
//加速度计是否有效
bool accEnable = 6;
//加速度测速差值(米/秒)
float accCheckSpeedDiff = 7;
//加速度持续时间
int32 accCheckTime = 8;
2024-03-11 16:15:02 +08:00
// 速传速度输出(米/秒)
2024-03-12 13:58:57 +08:00
int32 accOutSpeed = 9;
2024-03-11 16:15:02 +08:00
// 雷达速度输出(米/秒)
2024-03-12 13:58:57 +08:00
int32 radarOutSpeed = 10;
2024-04-19 16:55:51 +08:00
//记录雷达设置检测时间的时间点,用于计算周期内的数字
int64 radarCheckTimeOverAt = 11;
//记录加速度计设置检测时间的时间点,用于计算周期内的数字
int64 accCheckTimeOverAt = 12;
2024-01-17 17:02:17 +08:00
}