From 38f586dea415acbd036ca1c488d65356d16bff0f Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Tue, 19 Mar 2024 09:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E5=89=8D=E7=AB=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=88=97=E8=BD=A6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E4=B8=89=E6=96=B9=E6=98=A0=E5=B0=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=8Aws=E8=BF=94=E5=9B=9E=E5=88=97=E8=BD=A6=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/simulation/wayside/memory/wayside_simulation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/simulation/wayside/memory/wayside_simulation.go b/ts/simulation/wayside/memory/wayside_simulation.go index 81bdaab..8455f45 100644 --- a/ts/simulation/wayside/memory/wayside_simulation.go +++ b/ts/simulation/wayside/memory/wayside_simulation.go @@ -286,7 +286,7 @@ func (s *VerifySimulation) HandleDynamicsTrainInfo(info *message.DynamicsTrainIn return } train := trainData.(*state_proto.TrainState) - connType := train.Tcc.ConnState + connType := train.ConnState //列车连接并且是半实物连接 date 2024-3-15 if connType.Conn && connType.ConnType == state_proto.TrainConnState_VOBC { // 给半实物仿真发送速度 @@ -390,7 +390,7 @@ func (s *VerifySimulation) HandleSemiPhysicalTrainControlMsg(b []byte) { if !train.Show { // 下线列车 return true } - connState := train.Tcc.ConnState + connState := train.ConnState if connState.Conn == true && connState.ConnType == state_proto.TrainConnState_VOBC { trainId, err := strconv.Atoi(train.Id) if err != nil {