Fix code changes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
index 880894f810c81705e164e0e1edeb922b0b4cb493..4ea52e6bc798ffa95ab29e59ae90309024350cad 100644 (file)
@@ -1,5 +1,8 @@
 package org.usfirst.frc.team3501.robot;
 
+import org.usfirst.frc.team3501.robot.commands.driving.BrakeCANTalons;
+import org.usfirst.frc.team3501.robot.commands.driving.CoastCANTalons;
+
 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;
@@ -82,7 +85,7 @@ public class OI /* implements KeyListener */ {
 
     togglePiston = new JoystickButton(rightJoystick,
         Constants.Shooter.TOGGLE_INDEXER);
-    togglePiston.whenPressed(new ToggleIndexerPiston());
+    togglePiston.toggleWhenPressed(new ToggleIndexerPiston());
 
     toggleDriveTrainPiston = new JoystickButton(rightJoystick,
         Constants.DriveTrain.TOGGLE_DRIVE_PISTON);
@@ -114,5 +117,4 @@ public class OI /* implements KeyListener */ {
    *
    * @Override public void keyTyped(KeyEvent e) { }
    */
-
 }