【动力学加速度数据解析】
This commit is contained in:
parent
5ace656928
commit
dd3a17fdd4
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user