Add thumb button to send to RioLog/Drive console the current speed of the shooter...
authorEvanYap <evanyap.14@gmail.com>
Thu, 21 Jan 2016 04:26:09 +0000 (20:26 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Sat, 23 Jan 2016 03:37:35 +0000 (19:37 -0800)
src/org/usfirst/frc/team3501/robot/Constants.java
src/org/usfirst/frc/team3501/robot/OI.java
src/org/usfirst/frc/team3501/robot/commands/ShooterTest.java

index 1cff6104ed66a5a154f7304699df1cb29407acf2..f34630784465bd49ed01c02292b482e54905b7d8 100644 (file)
@@ -15,7 +15,6 @@ public class Constants {
     public final static int RIGHT_STICK_LEFT_SILVER_BUTTON = 0;
     public final static int RIGHT_STICK_RIGHT_SILVER_BUTTON = 0;
     public final static int RIGHT_STICK_THUMB_BUTTON = 0;
-
   }
 
   public static class DriveTrain {
index 9516b93599e228b5b9e18b47335e596bbf18dabd..1a8b8ab7aec9a2f12d645f1d87e33b1f8d69aae5 100644 (file)
@@ -25,6 +25,9 @@ public class OI {
     thumbButton = new JoystickButton(rightJoystick,
         Constants.OI.RIGHT_STICK_THUMB_BUTTON);
 
+    thumbButton = new JoystickButton(rightJoystick,
+        Constants.OI.RIGHT_STICK_THUMB_BUTTON);
+
   }
 
 }
index c39c863a08a57fe9b1dc2cae64012bd8bbbbc5ea..44a3686817620031770f3bd50df74bb08433d875 100644 (file)
@@ -26,7 +26,6 @@ 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();
@@ -48,6 +47,7 @@ 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()