* Master button: started and initialized
*/
MountedPosition masterButtonPos = new MountedPosition(RootMount.get(),
SWITCH_POSITIONS[MASTER_BUTTON][X],
SWITCH_POSITIONS[MASTER_BUTTON][Y], 0);
SimSwitch masterButton = new SimSwitch(switchDisplay, masterButtonPos);
// RPCSwitch masterRPC = new RPCSwitch(usbConn,
// BUTTON_RPC_KEYS[MASTER_BUTTON]);
SwitchDisplay masterButtonDisplay = new SwitchDisplay(masterButton,
masterButtonPos, MECHANISM_NAMES[MASTER_BUTTON]);
/**
* Auto Button: started and initialized
*/
MountedPosition autoButtonPos = new MountedPosition(RootMount.get(),
SWITCH_POSITIONS[AUTO_BUTTON][X],
SWITCH_POSITIONS[AUTO_BUTTON][Y], 0);
SimSwitch autoButton = new SimSwitch(switchDisplay, autoButtonPos);
// RPCSwitch autoRPC = new RPCSwitch(usbConn,
// BUTTON_RPC_KEYS[AUTO_BUTTON]);
SwitchDisplay autoButtonDisplay = new SwitchDisplay(autoButton,
autoButtonPos, MECHANISM_NAMES[AUTO_BUTTON]);
// TODO RPC
// we will need to make an array that is passed in
/**
* Mechanism buttons : started and initialized
*/
MountedPosition[] buttonPositions = new MountedPosition[NUM_MECHS];
SimSwitch[] buttons = new SimSwitch[NUM_MECHS];
SwitchDisplay[] buttonDisplays = new SwitchDisplay[NUM_MECHS];
for (int i = 0; i < buttonPositions.length; i++) {
buttonPositions[i] = new MountedPosition(RootMount.get(),
SWITCH_POSITIONS[i][X], SWITCH_POSITIONS[i][Y], 0);
buttons[i] = new SimSwitch(switchDisplay, buttonPositions[i]);
buttonDisplays[i] = new SwitchDisplay(buttons[i],
buttonPositions[i], MECHANISM_NAMES[i]);
}
/**
* Solenoids