门选零位不给牵引力
This commit is contained in:
parent
a7acb9929d
commit
be7e4f7a83
@ -34,6 +34,10 @@ public class DriverOperateHandler {
|
|||||||
VirtualRealityTrain train = simulation.getRepository().getOnlineTrainBy(groupNumber);
|
VirtualRealityTrain train = simulation.getRepository().getOnlineTrainBy(groupNumber);
|
||||||
// if (train.isSignalEB() && percent == -2)
|
// if (train.isSignalEB() && percent == -2)
|
||||||
// ATPService.cancelSignalEB(train);
|
// ATPService.cancelSignalEB(train);
|
||||||
|
// 门选不是零位,不给牵引力
|
||||||
|
if (!train.getDoorSelection().equals(VirtualRealityTrain.DoorSelection.Z)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ((percent <= 1 && percent >= -1) || percent == -2) {
|
if ((percent <= 1 && percent >= -1) || percent == -2) {
|
||||||
train.setLeverPosition(percent);
|
train.setLeverPosition(percent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user