修改头码车默认运行时间

This commit is contained in:
joylink_zhangsai 2021-08-12 18:14:00 +08:00
parent d99901c568
commit 2a7d83d198

View File

@ -135,7 +135,7 @@ public class AtsHeadTrainStageService implements AtsStageService {
float distance = routePaths.stream().min(Comparator.comparingDouble(RoutePath::calculateDistance)).get().calculateDistance(); float distance = routePaths.stream().min(Comparator.comparingDouble(RoutePath::calculateDistance)).get().calculateDistance();
return (int) (distance / (45 / 3.6)); return (int) (distance / (45 / 3.6));
} }
return 120; return 1;
} }
public static Section queryNextPlanSection(SimulationDataRepository repository, Section headSection, TrainInfo trainInfo) { public static Section queryNextPlanSection(SimulationDataRepository repository, Section headSection, TrainInfo trainInfo) {