+ xboxController = new Joystick(Constants.OI.XBOX_CONTROLLER_PORT);
+ // rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
+ gamePad = new Joystick(Constants.OI.GAME_PAD_PORT);
+
+ runIndexWheel = new JoystickButton(xboxController,
+ Constants.OI.RUN_INDEXWHEEL_PORT);
+ runIndexWheel.whileHeld(new RunIndexWheelContinuous());
+
+ reverseIndexWheel = new JoystickButton(xboxController,
+ Constants.OI.REVERSE_INDEXWHEEL_PORT);
+ reverseIndexWheel.whileHeld(new ReverseIndexWheelContinuous());
+
+ runFlyWheel = new JoystickButton(gamePad, Constants.OI.RUN_FLYWHEEL_PORT);
+ runFlyWheel.whenPressed(new RunFlyWheelContinuous());
+
+ stopFlyWheel = new JoystickButton(gamePad, Constants.OI.STOP_FLYWHEEL_PORT);
+ stopFlyWheel.whenPressed(new StopFlyWheel());
+
+ reverseFlyWheel = new JoystickButton(gamePad,
+ Constants.OI.REVERSE_FLYWHEEL_PORT);
+ reverseFlyWheel.whileHeld(new ReverseFlyWheelContinuous());
+
+ 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());
+ */
+
+ 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());