IHHSwitch[] switches = new IHHSwitch[NUM_MECHS];
HHMechanism[] mechanisms = new HHMechanism[NUM_MECHS];
HHController[] controllers = new HHController[NUM_MECHS];
for (int i = 0; i < NUM_MECHS; i++) {
switches[i] = new HHToggleSwitch(autoRPC, rpcSwitches[i]);
switches[i].startListening();
mechanisms[i] = new HHMechanism(new ISolenoid[] { actuators[i],
solenoids[i] }, safety);
mechanisms[i].startListening();