修改:换端逻辑的循环条件

This commit is contained in:
joylink_zhangsai 2021-06-16 15:02:55 +08:00
parent 02e961d5fa
commit c39648bd59

View File

@ -59,7 +59,7 @@ public class ATPLogicLoop {
this.onboardLogicRun2(simulation, train);
SimulationMember member = simulation
.findMemberByRoleAndDeviceCode(SimulationMember.Type.DRIVER, train.getGroupNumber());
if (Objects.nonNull(member) && member.isRobot()) {
if (Objects.nonNull(member) && train.isAtoOn()/*&& member.isRobot()*/) {
this.driveLogicRun(simulation, train);
}
}