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 {