【删除列车头部所在UID】

This commit is contained in:
weizhihong 2023-11-08 15:19:42 +08:00
parent 2f754d1579
commit e461e762e4
1 changed files with 0 additions and 1 deletions

View File

@ -285,7 +285,6 @@ func convert(info *message.DynamicsTrainInfo, sta *state.TrainState, simulation
_, id, port, _, offset, kilometer := CalcInitializeLink(simulation, strconv.Itoa(int(info.Link)), int64(info.LinkOffset), info.Up)
runDirection, pointTo := QueryDirectionAndABByDevice(simulation.Repo, id, port, info.Up)
slog.Debug("处理动力学转换后的消息", "number", info.Number, "车头位置", id, "偏移", offset, "是否上行", runDirection, "是否ab", pointTo)
sta.HeadDeviceUId = id
sta.HeadDeviceId = simulation.GetComIdByUid(id)
sta.DevicePort = port
sta.HeadOffset = offset