+
+ recordData = new JoystickButton(leftJoystick,
+ Constants.OI.SPIN1_PORT);
+ recordData.whenPressed(new RecordData());
+
+ shoot = new JoystickButton(leftJoystick,
+ Constants.OI.LEFT_JOYSTICK_TRIGGER_PORT);
+ shoot.whenPressed(new Test1());
+
+ incrementSpeed = new JoystickButton(leftJoystick,
+ Constants.OI.SPIN2_PORT);
+ incrementSpeed.whenPressed(new Test2());
+
+ decrementSpeed = new JoystickButton(leftJoystick,
+ Constants.OI.LEFT_JOYSTICK_TOP_LOW_PORT);
+ decrementSpeed.whenPressed(new Test3());
+