+ shiftLow = new JoystickButton(xboxController, Constants.OI.SHIFT_LOW_PORT);
+ shiftLow.whenPressed(new ShiftDriveLowGear());
+
+ /*
+ * toggleGearManipulatorPiston = new JoystickButton(gamePad,
+ * Constants.OI.TOGGLE_GEAR_MANIPULATOR_PORT);
+ * toggleGearManipulatorPiston.whenPressed(new
+ * ToggleGearManipulatorPiston());
+ */
+
+ shiftGearManipulatorPistonHigh = new JoystickButton(gamePad,
+ Constants.OI.SHIFT_GEAR_MANIPULATOR_HIGH_PORT);
+ shiftGearManipulatorPistonHigh
+ .whenPressed(new ShiftGearManipulatorPistonHigh());
+
+ shiftGearManipulatorPistonLow = new JoystickButton(gamePad,
+ Constants.OI.SHIFT_GEAR_MANIPULATOR_LOW_PORT);
+ shiftGearManipulatorPistonLow
+ .whenPressed(new ShiftGearManipulatorPistonLow());
+
+ runIntake = new JoystickButton(xboxController,
+ Constants.OI.RUN_INTAKE_PORT);
+ runIntake.whileHeld(new RunIntakeContinuous());
+
+ reverseIntake = new JoystickButton(xboxController,
+ Constants.OI.REVERSE_INTAKE_PORT);
+ reverseIntake.whileHeld(new ReverseIntakeContinuous());
+
+ increaseShooterSpeed = new JoystickButton(gamePad,
+ Constants.OI.INCREASE_SHOOTER_SPEED_PORT);
+ increaseShooterSpeed.whenPressed(new IncreaseShootingSpeed());
+
+ decreaseShooterSpeed = new JoystickButton(gamePad,
+ Constants.OI.DECREASE_SHOOTER_SPEED_PORT);
+ decreaseShooterSpeed.whenPressed(new DecreaseShootingSpeed());
+
+ resetShooterSpeed = new JoystickButton(gamePad,
+ Constants.OI.RESET_SHOOTER_SPEED_PORT);
+ resetShooterSpeed.whenPressed(new ResetShootingSpeed());
+
+ brakeCANTalons = new JoystickButton(xboxController,
+ Constants.OI.BRAKE_CANTALONS_PORT);
+ brakeCANTalons.whenPressed(new BrakeCANTalons());
+
+ coastCANTalons = new JoystickButton(xboxController,
+ Constants.OI.COAST_CANTALONS_PORT);
+ coastCANTalons.whenPressed(new CoastCANTalons());
+
+ climb = new JoystickButton(xboxController, Constants.OI.CLIMB_PORT);
+ climb.whenPressed(new RunWinch());
+
+ stopclimb = new JoystickButton(xboxController,
+ Constants.OI.STOP_CLIMB_PORT);
+ stopclimb.whenPressed(new StopWinch());