From: Kevin Zhang Date: Sun, 24 Jan 2016 00:12:19 +0000 (-0800) Subject: Change decrement/increment shooter port names to be more descriptive X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=fcc8d616e889de4ae69d735e8c00437f0a39f95d Change decrement/increment shooter port names to be more descriptive --- diff --git a/src/org/usfirst/frc/team3501/robot/Constants.java b/src/org/usfirst/frc/team3501/robot/Constants.java index 6c3df6ae..f5694c6f 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -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 { diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 17889c70..6b2f0510 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -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,