113114115116117118119120121
mechanisms[i] = new HHMechanism( new ISolenoid[] { this.actuatorSims[i] }, safetyButton); // safetyButton.addSafetyListener(mechanisms[i]); controllers[i] = new HHController(mechanisms[i], switches[i], waitTimes[i]); } }
248249250251252253254255256257
mechanisms[i] = new HHMechanism(new ISolenoid[] { actuators[i], solenoids[i] }, safety); mechanisms[i].startListening(); controllers[i] = new HHController(mechanisms[i], switches[i], MECHANISM_WAIT_TIMES[i]); controllers[i].startListening(); } }