- recordPotAngle1 = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_JOYSTICK_TOP_LEFT_BUTTON);
- recordPotAngle1.whenPressed(new RecordPotAngle(0));
- recordPotAngle2 = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_JOYSTICK_TOP_CENTER_BUTTON);
- recordPotAngle2.whenPressed(new RecordPotAngle(1));
- recordPotAngle3 = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_JOYSTICK_TOP_RIGHT_BUTTON);
- recordPotAngle3.whenPressed(new RecordPotAngle(2));
- recordPotAngle4 = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_JOYSTICK_TOP_LOW_BUTTON);
- recordPotAngle4.whenPressed(new RecordPotAngle(3));
-