Compare commits
2 Commits
e7f6f8e74d
...
736052740a
Author | SHA1 | Date | |
---|---|---|---|
|
736052740a | ||
|
968a46fbe7 |
@ -291,6 +291,9 @@ func UpdateTrainStateByDynamics(vs *VerifySimulation, trainId string, info *mess
|
|||||||
panic(sys_error.New(fmt.Sprintf("动力学传输数据:列车【%s】不存在", trainId)))
|
panic(sys_error.New(fmt.Sprintf("动力学传输数据:列车【%s】不存在", trainId)))
|
||||||
}
|
}
|
||||||
sta := data.(*state_proto.TrainState)
|
sta := data.(*state_proto.TrainState)
|
||||||
|
if !sta.Show {
|
||||||
|
return sta
|
||||||
|
}
|
||||||
delayTime := time.Now().UnixMilli() - sta.VobcState.UpdateTime
|
delayTime := time.Now().UnixMilli() - sta.VobcState.UpdateTime
|
||||||
sta.ControlDelayTime = (int64(sta.VobcState.LifeSignal)-int64(info.VobcLifeSignal))*20 + delayTime
|
sta.ControlDelayTime = (int64(sta.VobcState.LifeSignal)-int64(info.VobcLifeSignal))*20 + delayTime
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user