Change decrement/increment shooter port names to be more descriptive
authorKevin Zhang <icestormf1@gmail.com>
Sun, 24 Jan 2016 00:12:19 +0000 (16:12 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Sun, 24 Jan 2016 00:12:19 +0000 (16:12 -0800)
src/org/usfirst/frc/team3501/robot/Constants.java
src/org/usfirst/frc/team3501/robot/OI.java

index 6c3df6ae82928766a94642e9fa4c11de417f66bb..f5694c6f59391a4628d11b86a3e120572fe3186e 100644 (file)
@@ -13,11 +13,10 @@ public class Constants {
     public final static int RIGHT_STICK_PORT = 1;
     // Ports on the Joystick
     public final static int TRIGGER_PORT = 1;
-    public final static int DEC_SHOOTER_SPD_PORT = 2;
-    public final static int INC_SHOOTER_SPD_PORT = 3;
+    public final static int DECREMENT_SHOOTER_SPEED_PORT = 2;
+    public final static int INCREMENT_SHOOTER_SPEED_PORT = 3;
     public final static int SHOOT_PORT = 4;
     public final static int LOG_PORT = 5;
-    // TODO: make the port names (dec, inc)s even more descriptive
   }
 
   public static class DriveTrain {
index 17889c7073c21796465fa0294b3c3f057a7ec139..6b2f0510601f1531e70398e1f530cde5bcb3596e 100644 (file)
@@ -20,11 +20,11 @@ public class OI {
     rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
 
     decrementShooterSpeed = new JoystickButton(rightJoystick,
-        Constants.OI.DEC_SHOOTER_SPD_PORT);
+        Constants.OI.DECREMENT_SHOOTER_SPEED_PORT);
     decrementShooterSpeed.whenPressed(new ChangeShooterSpeed(-0.1));
 
     incrementShooterSpeed = new JoystickButton(rightJoystick,
-        Constants.OI.INC_SHOOTER_SPD_PORT);
+        Constants.OI.INCREMENT_SHOOTER_SPEED_PORT);
     incrementShooterSpeed.whenPressed(new ChangeShooterSpeed(0.1));
 
     outputCurrentShooterSpeed = new JoystickButton(rightJoystick,