列车状态中的阻力和速度改为浮点数;

This commit is contained in:
joylink_zhangsai 2023-08-02 13:47:33 +08:00
parent f0da7c7c5c
commit c87d9f5a41

View File

@ -89,27 +89,27 @@ message TrainState{
//,1 =true 0 =false
bool runningUp = 11;
//,1=1KN
int32 runningResistanceSum = 12;
float runningResistanceSum = 12;
//1,1=1KN
int32 airResistance = 13;
float airResistance = 13;
//2,1=1KN
int32 rampResistance = 14;
float rampResistance = 14;
//3线,1=1KN
int32 curveResistance = 15;
float curveResistance = 15;
//,1=1km/h
int32 speed = 16;
float speed = 16;
//1,1=1km/h
int32 headSensorSpeed1 = 17;
float headSensorSpeed1 = 17;
//2,1=1km/h
int32 headSensorSpeed2 = 18;
float headSensorSpeed2 = 18;
//1,1=1km/h
int32 tailSensorSpeed1 = 19;
float tailSensorSpeed1 = 19;
//2,1=1km/h
int32 tailSensorSpeed2 = 20;
float tailSensorSpeed2 = 20;
//,1=1km/h
int32 headRadarSpeed = 21;
float headRadarSpeed = 21;
//,1=1km/h
int32 tailRadarSpeed = 22;
float tailRadarSpeed = 22;
//,1=1mm
int64 trainLength = 23;
//