ato逻辑无速度曲线判断

This commit is contained in:
walker-sheng 2021-08-09 14:45:55 +08:00
parent bdd35ae336
commit 631324c2c7

View File

@ -97,6 +97,9 @@ public class ATOService {
return;
}
SpeedCurve speedCurve = ma.getAtoStopCurve();
if (speedCurve == null) {
return;
}
// 更新目标距离和建议速度
train.setTargetDistance(speedCurve.getTotalDistance());
this.doControlBySpeedCurve(train, speedCurve, speedCurve.getTotalDistance());