Add ToggleIndexerPiston class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
index 9000e35fa16a56ff67b549d4ee829c42d10dd198..07ad53c765b9f50318f9cb024d4a46c1344e02e1 100644 (file)
@@ -1,7 +1,6 @@
 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;
@@ -11,6 +10,7 @@ import org.usfirst.frc.team3501.robot.commands.shooter.ReverseIndexWheelContinuo
 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;
@@ -79,11 +79,9 @@ public class OI /* implements KeyListener */ {
         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);
@@ -91,7 +89,7 @@ public class OI /* implements KeyListener */ {
 
     toggleDriveTrainPiston = new JoystickButton(rightJoystick,
         Constants.DriveTrain.TOGGLE_DRIVE_PISTON);
-    toggleDriveTrainPiston.whenPressed(new ToggleDrivePiston());
+    toggleDriveTrainPiston.whenPressed(new ToggleGear());
   }
 
   public static OI getOI() {