+ toggleFlyWheel.toggleWhenPressed(new RunFlyWheelContinuous());
+
+ reverseFlyWheel = new JoystickButton(gamePad,
+ Constants.OI.REVERSE_FLYWHEEL_PORT);
+ reverseFlyWheel.whileHeld(new ReverseFlyWheelContinuous());
+
+ // toggleGear = new JoystickButton(xboxController,
+ // Constants.OI.TOGGLE_GEAR_PORT);
+ // toggleGear.whenPressed(new ToggleDriveGear());
+
+ shiftHigh = new JoystickButton(xboxController,
+ Constants.OI.SHIFT_HIGH_PORT);
+ shiftHigh.whenPressed(new ShiftDriveHighGear());
+
+ 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());
+
+ 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 ToggleWinch());