车载不接收动力学速度为负数

This commit is contained in:
tiger_zhou 2024-10-08 18:17:45 +08:00
parent 81c36c6fb1
commit 0921835d27
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,9 @@ func (d *trainPcSimService) TrainPluseCount(sta *state_proto.TrainState, h1, h2,
return
default:
}
if h1 < 0 || t1 < 0 {
return
}
//slog.Info(fmt.Sprintf("接受列车速度:%v", h1))
for _, sd := range d.findTrainAllConn(sta) {
if sd.speedPlace != nil {