动力学列车数据配置

This commit is contained in:
tiger_zhou 2024-01-18 16:04:56 +08:00
parent 2db94f19b5
commit c7ee997a5e
3 changed files with 48 additions and 8 deletions

View File

@ -30,7 +30,7 @@ message TrainDynamicConfig{
bool jump=9; bool jump=9;
//% //%
float slip=10; float slip=10;
///mm ///m/s
int32 slide = 11; int32 slide = 11;
///mm ///mm
int32 stopSign=12; int32 stopSign=12;
@ -44,8 +44,8 @@ message TrainEndsState{
bool speedSensorEnableB = 2; bool speedSensorEnableB = 2;
// //
bool radarEnable = 3; bool radarEnable = 3;
// ///
float radarCheckSpeed = 4; float radarCheckSpeedDiff = 4;
//() //()
int32 radarCheckTime = 5; int32 radarCheckTime = 5;
} }

View File

@ -396,13 +396,53 @@ message TrainMapState{
// //
bool vobcInterruption = 61; bool vobcInterruption = 61;
// //
common.TrainDynamicConfig trainDynamicConfig = 62; TrainDynamicConfigMqtt trainDynamicConfig = 62;
//A端 //A端
common.TrainEndsState trainEndsA = 63; TrainEndsStateMqtt trainEndsA = 63;
//B端 //B端
common.TrainEndsState trainEndsB = 64; TrainEndsStateMqtt trainEndsB = 64;
} }
//golang float类型数据序列化后丢失精度故使用string
// common_data TrainDynamicConfig类型属性保持一致
message TrainDynamicConfigMqtt{
//A float
string baseResistanceParamA=1;
// B float
string baseResistanceParamB=2;
// C float
string baseResistanceParamC=3;
//线R1 float
string curveResistanceParamR1=4;
// 线R2 float
string curveResistanceParamR2=5;
// 线R3 float
string curveResistanceParamR3=6;
// 线R4 float
string curveResistanceParamR4=7;
// float
string revolvingMassParam=8;
//
bool jump=9;
//% float
string slip=10;
///m/s
int32 slide = 11;
///mm
int32 stopSign=12;
}
//
message TrainEndsStateMqtt{
//
bool speedSensorEnableA = 1;
bool speedSensorEnableB = 2;
//
bool radarEnable = 3;
/// float
string radarCheckSpeedDiff = 4;
//()
int32 radarCheckTime = 5;
}
// //
message ReplyState { message ReplyState {
// //

View File

@ -657,8 +657,8 @@ message Train {
TrainModel trainModel = 1; // TrainModel trainModel = 1; //
int32 carriageLength = 2; // int32 carriageLength = 2; //
int32 totalLength = 3; // int32 totalLength = 3; //
int32 minDiameter = 4; // // int32 minDiameter = 4; //
int32 maxDiameter = 5; // // int32 maxDiameter = 5; //
string trainSets = 6; // string trainSets = 6; //
common.TrainDynamicConfig dynamicConfig = 7; // common.TrainDynamicConfig dynamicConfig = 7; //
} }