58 lines
1.5 KiB
Protocol Buffer
58 lines
1.5 KiB
Protocol Buffer
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
|
||
float davisParamA=1;
|
||
// 基本阻力参数B
|
||
float davisParamB=2;
|
||
// 基本阻力参数C
|
||
float davisParamC=3;
|
||
//曲线阻力参数R1
|
||
float curveResistanceParamR1=4;
|
||
// 曲线阻力参数R2
|
||
float curveResistanceParamR2=5;
|
||
// 曲线阻力参数R3
|
||
float curveResistanceParamR3=6;
|
||
// 曲线阻力参数R4
|
||
float curveResistanceParamR4=7;
|
||
//旋转质量参数
|
||
float revolvingMassParam=8;
|
||
//是否跳跃
|
||
bool jump=9;
|
||
//打滑(%)
|
||
float slip=10;
|
||
//前溜/后溜(m/s)(正数前溜,负数后溜)
|
||
int32 slide = 11;
|
||
//过标/欠标(mm)(正数过标,负数欠标)
|
||
int32 stopSign=12;
|
||
float idling =13 ;//空转
|
||
|
||
}
|
||
//列车一端的状态
|
||
message TrainEndsState{
|
||
//速度传感器
|
||
bool speedSensorEnableA = 1;
|
||
bool speedSensorEnableB = 2;
|
||
//雷达是否有效
|
||
bool radarEnable = 3;
|
||
//雷达测速差值(米/秒)
|
||
float radarCheckSpeedDiff = 4;
|
||
//雷达检测时间(秒)
|
||
int32 radarCheckTime = 5;
|
||
//加速度计是否有效
|
||
bool accEnable = 6;
|
||
//加速度测速差值(米/秒)
|
||
float accCheckSpeedDiff = 7;
|
||
//加速度持续时间
|
||
int32 accCheckTime = 8;
|
||
}
|