列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态
This commit is contained in:
parent
752dfa11eb
commit
38f586dea4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue