修改备用车无法ATO驾驶(zc去掉未锁闭进路检查)、不停站问题

This commit is contained in:
joylink_zhangsai 2021-07-29 15:19:51 +08:00
parent f078ad99dd
commit 988bed827d
3 changed files with 10 additions and 8 deletions

View File

@ -120,11 +120,11 @@ public class ZCLogicLoop {
if (switchEnd != null)
return List.of(switchEnd);
// 检查列车当前所在进路是否锁闭
MovementAuthority.End end1 = this.checkRouteLock(simulation, section, tailSection, right, train);
if (Objects.nonNull(end1)) {
endList.add(end1);
return endList;
}
// MovementAuthority.End end1 = this.checkRouteLock(simulation, section, tailSection, right, train);
// if (Objects.nonNull(end1)) {
// endList.add(end1);
// return endList;
// }
// // 检查车头区段是否故障
// if (headPosition.getSection().isFault()) {
// endList.add(new MovementAuthority.End(headPosition.getSection(), MovementAuthority.EndType.FAULT_SECTION));

View File

@ -595,6 +595,7 @@ public class VirtualRealityTrain extends VirtualRealityDevice {
this.signalEB = false;
this.atpOn = true;
this.atoOn = true;
this.nextParking = true;
}
public synchronized void updateNextStationPlan(Station nextStation, Section targetSection, boolean nextParking) {

View File

@ -102,9 +102,9 @@ public class RobotLogicLoop {
atoService.doBreakMax(train);
train.setRobotTargetPosition(null);
TrainInfo trainInfo = repository.getSupervisedTrainByGroup(train.getGroupNumber());
if (trainInfo.isManual()) {
train.setTarget(null);
}
// if (trainInfo.isManual()) {
// train.setTarget(null);
// }
continue;
}
// if (train.isEB()) {
@ -120,6 +120,7 @@ public class RobotLogicLoop {
TrainInfo trainInfo = repository.getSupervisedTrainByGroup(train.getGroupNumber());
if (trainInfo.isManual()) {
train.setTarget(train.getRobotTargetPosition().getSection());
train.setRobotTargetPosition(null);
}
break;
case CM: