Add ToggleIndexerPiston class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / ToggleIndexerPiston.java
index 42cf3bcbef392aaaf9642656e809d9bc69cf042a..a653293d97ad4ca99b0dca5aa21c785415d87917 100644 (file)
@@ -27,10 +27,10 @@ public class ToggleIndexerPiston extends Command {
   // Called repeatedly when this Command is scheduled to run
   @Override
   protected void execute() {
-    if (Shooter.getShooter().getPistonValue() == Constants.Shooter.LOW_GEAR) {
-      Shooter.getShooter().setHighGear();
+    if (shooter.getPistonValue() == Constants.Shooter.LOW_GEAR) {
+      shooter.setHighGear();
     } else {
-      Shooter.getShooter().setLowGear();
+      shooter.setLowGear();
     }
   }