【动力学加速度数据解析】

This commit is contained in:
weizhihong 2023-10-07 17:16:10 +08:00
parent 5ace656928
commit dd3a17fdd4

View File

@ -241,7 +241,7 @@ func decoderDynamicsTrainInfo(buf []byte) *TrainInfo {
trainInfo.TailSpeed2 = math.Float32frombits(binary.BigEndian.Uint32(buf[46:50]))
trainInfo.HeadRadarSpeed = math.Float32frombits(binary.BigEndian.Uint32(buf[50:54]))
trainInfo.TailRadarSpeed = math.Float32frombits(binary.BigEndian.Uint32(buf[54:58]))
trainInfo.Acceleration = math.Float32frombits(binary.BigEndian.Uint32(buf[58:61]))
trainInfo.Acceleration = math.Float32frombits(binary.BigEndian.Uint32(buf[58:62]))
return trainInfo
}