移除:自动缓解EB逻辑

This commit is contained in:
joylink_zhangsai 2021-06-11 09:55:20 +08:00
parent 96af0971ec
commit 3b1f08df5d

View File

@ -133,18 +133,18 @@ public class ATPLogicLoop {
this.handleStandParkedTrain(simulation, train); this.handleStandParkedTrain(simulation, train);
} }
if (train.isEB()) { // 列车EB // if (train.isEB()) { // 列车EB
if (train.isAtpOn()) { // 尝试自动缓解信号EB // if (train.isAtpOn()) { // 尝试自动缓解信号EB
if (train.getLeverPosition() == 0 && train.getMa() != null) { // if (train.getLeverPosition() == 0 && train.getMa() != null) {
Float distance = CalculateService.calculateDistance(headPosition, train.getMa().getEnd().getEndPosition(), right); // Float distance = CalculateService.calculateDistance(headPosition, train.getMa().getEnd().getEndPosition(), right);
if (distance != null && distance > 100) { // if (distance != null && distance > 100) {
atpService.cancelSignalEB(train); // atpService.cancelSignalEB(train);
applicationContext.publishEvent(new SimulationATPAutoCancelEBEvent(this, simulation, train)); // applicationContext.publishEvent(new SimulationATPAutoCancelEBEvent(this, simulation, train));
log.info(String.format("列车[%s]移动授权距离超过100mEB自动缓解", train.getGroupNumber())); // log.info(String.format("列车[%s]移动授权距离超过100mEB自动缓解", train.getGroupNumber()));
} // }
} // }
} // }
} // }
/* 缓解EB检查 */ /* 缓解EB检查 */
if (train.isEB()) { if (train.isEB()) {