Add thumb button to send to RioLog/Drive console the current speed of the shooter...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / ShooterTest.java
index da1fc777575412d24769ccfadbbdeec00c8a8359..b4b2423487ae5a3b61b8bd985ff34559669481ee 100644 (file)
@@ -23,23 +23,28 @@ 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();
 
-    if (triggerPressed = true) {
+    if (triggerPressed == true) {
       Robot.shooter.setSpeed(currentWheelSpeed);
     } else {
       Robot.shooter.setSpeed(0.0);
     }
 
-    if (leftSidePressed = true) {
+    if (leftSidePressed == true) {
       Robot.shooter.setDecrementSpeed(0.1);
     }
 
-    if (rightSidePressed = true) {
+    if (rightSidePressed == true) {
       Robot.shooter.setIncrementSpeed(0.1);
     }
 
+    if (thumbPressed == true) {
+      System.out.println(Robot.shooter.getCurrentSpeed());
+    }
+
   }
 
   // Make this return true when this Command no longer needs to run execute()