package org.usfirst.frc.team3501.robot;
import org.usfirst.frc.team3501.robot.commands.climber.ToggleWinch;
-import org.usfirst.frc.team3501.robot.commands.driving.ToggleDrivePiston;
import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear;
import org.usfirst.frc.team3501.robot.commands.intake.ReverseIntakeContinuous;
import org.usfirst.frc.team3501.robot.commands.intake.RunIntakeContinuous;
import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheelContinuous;
import org.usfirst.frc.team3501.robot.commands.shooter.RunIndexWheelContinuous;
import org.usfirst.frc.team3501.robot.commands.shooter.ToggleIndexerPiston;
+import org.usfirst.frc.team3501.robot.utils.ChangeCameraView;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
runIndexWheel = new JoystickButton(rightJoystick,
Constants.OI.RUN_INDEXWHEEL_PORT);
- runIndexWheel.whileHeld(
- new RunIndexWheelContinuous()); /*
- * { double shooterSpeed =
- * (Robot.getShooter()).getShooterRPM();
- * if (shooterSpeed > 0) {
- * Robot.getShooter().runIndexWheel(); }
- * });
- */
+ runIndexWheel.whileHeld(new RunIndexWheelContinuous());
reverseIndexWheel = new JoystickButton(rightJoystick,
Constants.OI.REVERSE_INDEXWHEEL_PORT);
Constants.OI.DECREASE_SHOOTER_SPEED_PORT);
decreaseShooterSpeed.whenPressed(new DecreaseShootingSpeed());
- /*
- * changeCam = new JoystickButton(rightJoystick,
- * Constants.OI.CHANGE_CAMERA_VIEW); changeCam.toggleWhenPressed(new
- * ChangeCameraView());
- */
+ changeCam = new JoystickButton(rightJoystick,
+ Constants.OI.CHANGE_CAMERA_VIEW);
+ changeCam.toggleWhenPressed(new ChangeCameraView());
togglePiston = new JoystickButton(rightJoystick,
Constants.Shooter.TOGGLE_INDEXER);
toggleDriveTrainPiston = new JoystickButton(rightJoystick,
Constants.DriveTrain.TOGGLE_DRIVE_PISTON);
- toggleDriveTrainPiston.whenPressed(new ToggleDrivePiston());
+ toggleDriveTrainPiston.whenPressed(new ToggleGear());
}
public static OI getOI() {