修改:IBP盘蜂鸣器bug

This commit is contained in:
joylink_zhangsai 2021-06-21 14:17:19 +08:00
parent 2339952cae
commit d350f15260

View File

@ -100,6 +100,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
case JJTC: case JJTC:
element.setOn(true); element.setOn(true);
stands.forEach(stand -> ciApiService.standEC(simulation, stand)); stands.forEach(stand -> ciApiService.standEC(simulation, stand));
ibp.query(VirtualRealityIbp.Mean.ALARM, element.getUp()).forEach(alarm -> alarm.setOn(true));
break; break;
case QXJJTC: case QXJJTC:
element.setOn(true); element.setOn(true);
@ -265,9 +266,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
case KM: case KM:
case AXLE_RESET: case AXLE_RESET:
case PRERESET_Z: case PRERESET_Z:
break;
case ALARM: case ALARM:
element.setOn(stands.stream().anyMatch(Stand::isEmergencyClosed));
break; break;
case kcLight: case kcLight:
element.setOn(stands.stream().anyMatch(Stand::isIbpHoldTrain)); element.setOn(stands.stream().anyMatch(Stand::isIbpHoldTrain));