Creates methods for setting speed, adding to speed, and subtracting from speed along...
authorEvanYap <evanyap.14@gmail.com>
Thu, 21 Jan 2016 04:23:14 +0000 (20:23 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Sat, 23 Jan 2016 03:37:35 +0000 (19:37 -0800)
src/org/usfirst/frc/team3501/robot/OI.java
src/org/usfirst/frc/team3501/robot/commands/ShooterTest.java

index 2a4dd089d3b895cc7edebda8879db8feb3e7de61..9516b93599e228b5b9e18b47335e596bbf18dabd 100644 (file)
@@ -22,7 +22,6 @@ public class OI {
     rightSilverButton = new JoystickButton(rightJoystick,
         Constants.OI.RIGHT_STICK_RIGHT_SILVER_BUTTON);
     ;
-
     thumbButton = new JoystickButton(rightJoystick,
         Constants.OI.RIGHT_STICK_THUMB_BUTTON);
 
index a256bad47a5bde38097fd3df125f85765c9ed207..c39c863a08a57fe9b1dc2cae64012bd8bbbbc5ea 100644 (file)
@@ -16,7 +16,9 @@ public class ShooterTest extends Command {
 
   @Override
   protected void initialize() {
+
     Robot.shooter.setSpeed(0.5);
+
   }
 
   @Override
@@ -24,6 +26,7 @@ public class ShooterTest extends Command {
     boolean triggerPressed = Robot.oi.rightJoystick.getTrigger();
     boolean leftSidePressed = Robot.oi.leftSilverButton.get();
     boolean rightSidePressed = Robot.oi.rightSilverButton.get();
+
     boolean thumbPressed = Robot.oi.thumbButton.get();
 
     double currentWheelSpeed = Robot.shooter.getCurrentSpeed();
@@ -45,7 +48,6 @@ public class ShooterTest extends Command {
     if (thumbPressed == true) {
       System.out.println(Robot.shooter.getCurrentSpeed());
     }
-
   }
 
   // Make this return true when this Command no longer needs to run execute()