diff --git a/ats/verify/simulation/simulation_manage.go b/ats/verify/simulation/simulation_manage.go index 184d778..81fa645 100644 --- a/ats/verify/simulation/simulation_manage.go +++ b/ats/verify/simulation/simulation_manage.go @@ -264,9 +264,9 @@ func decoderVobcTrainState(buf []byte) *state.TrainVobcState { trainVobcInfo.TractionSafetyCircuit = (b3 & (1 << 4)) != 0 trainVobcInfo.ParkingBrakeStatus = (b3 & (1 << 5)) != 0 trainVobcInfo.MaintainBrakeStatus = (b3 & (1 << 6)) != 0 - trainVobcInfo.TractionForce = int64(binary.BigEndian.Uint16(buf[4:6]) / 100) - trainVobcInfo.BrakeForce = int64(binary.BigEndian.Uint16(buf[6:8]) / 100) - trainVobcInfo.TrainLoad = int64(binary.BigEndian.Uint16(buf[8:10]) / 100) + trainVobcInfo.TractionForce = int64(binary.BigEndian.Uint16(buf[4:6])) + trainVobcInfo.BrakeForce = int64(binary.BigEndian.Uint16(buf[6:8])) + trainVobcInfo.TrainLoad = int64(binary.BigEndian.Uint16(buf[8:10])) b4 := buf[15] trainVobcInfo.LeftDoorOpenCommand = (b4 & 1) != 0 trainVobcInfo.RightDoorOpenCommand = (b4 & (1 << 1)) != 0