From ea64d61fa56d177c8568665a710a10e712ce21ea Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Tue, 28 Sep 2021 16:23:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6=E8=BD=A6=E5=A4=B4/=E8=BD=A6?= =?UTF-8?q?=E5=B0=BE=E5=9C=A8=E8=AE=A1=E8=BD=B4=E6=95=85=E9=9A=9C=E5=8C=BA?= =?UTF-8?q?=E6=AE=B5=E6=97=B6=E6=97=A0=E6=B3=95=E5=8D=87=E7=BA=A7=E8=87=B3?= =?UTF-8?q?CBTC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/onboard/ATP/ATPLogicLoop.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPLogicLoop.java b/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPLogicLoop.java index 11437cc98..cbe1d45da 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPLogicLoop.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATP/ATPLogicLoop.java @@ -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); + } } } }