From 945ae4a43be3cd8348076a313c9ac55d6eaf497d Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 24 Aug 2023 14:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ats/verify/simulation/simulation_manage.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ats/verify/simulation/simulation_manage.go b/ats/verify/simulation/simulation_manage.go index e47fd09..2e30c49 100644 --- a/ats/verify/simulation/simulation_manage.go +++ b/ats/verify/simulation/simulation_manage.go @@ -50,10 +50,12 @@ func init() { if err != nil { panic(err) } + trainInfo := decoderVobcTrainState(info) + zap.S().Info("接收到vobc发送的列车消息", trainInfo) // 发送给动力学 dynamics.SendDynamicsTrainMsg(append(info, uint8(trainId))) // 存放至仿真中 - simulation.Memory.Status.VobcTrainStateMap.Store(train.Id, decoderVobcTrainState(info)) + simulation.Memory.Status.VobcTrainStateMap.Store(train.Id, trainInfo) } return false }) @@ -66,6 +68,7 @@ func init() { if ok { trainState := sta.(*state.TrainState) // 给半实物仿真发送速度 + zap.S().Info("发送到vobc发送的速度", info.Speed*36) vobc.SendTrainSpeedTask(info.Speed * 36) // 处理列车车头方向 handlerTrainHeadDirection(simulation, info, trainState)