diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java index 073c613cb..feb7b1cbf 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/handler/DriverOperateHandler.java @@ -34,6 +34,10 @@ public class DriverOperateHandler { VirtualRealityTrain train = simulation.getRepository().getOnlineTrainBy(groupNumber); // if (train.isSignalEB() && percent == -2) // ATPService.cancelSignalEB(train); + // 门选不是零位,不给牵引力 + if (!train.getDoorSelection().equals(VirtualRealityTrain.DoorSelection.Z)) { + return; + } if ((percent <= 1 && percent >= -1) || percent == -2) { train.setLeverPosition(percent); }