列车车头/车尾在计轴故障区段时无法升级至CBTC

This commit is contained in:
joylink_zhangsai 2021-09-28 16:23:59 +08:00
parent 1b6ffa0b8c
commit ea64d61fa5

View File

@ -85,7 +85,13 @@ public class ATPLogicLoop {
atpService.updateRunLevel(train, RunLevel.IL, preselectionMode);
atpService.triggerSignalEB(train);
} else if (!train.isCBTC() && !train.isCbtcMaMiss() && defaultRunLevel.equals(RunLevel.CBTC)) {
atpService.updateRunLevel(train, RunLevel.CBTC, preselectionMode);
boolean headSectionAxleFault = Section.AxleFault.FAULT
.equals(train.getHeadPosition().getSection().getFault()); //车头区段计轴故障
boolean tailSectionAxleFault = Section.AxleFault.FAULT
.equals(train.calculateTailPosition().getSection().getFault()); //车尾区段计轴故障
if (!headSectionAxleFault && !tailSectionAxleFault) {
atpService.updateRunLevel(train, RunLevel.CBTC, preselectionMode);
}
}
}
}