diff --git a/dynamics/udp.go b/dynamics/udp.go index 05f52b2..0d2e318 100644 --- a/dynamics/udp.go +++ b/dynamics/udp.go @@ -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 }