From fcc8d616e889de4ae69d735e8c00437f0a39f95d Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 23 Jan 2016 16:12:19 -0800 Subject: [PATCH] Change decrement/increment shooter port names to be more descriptive --- src/org/usfirst/frc/team3501/robot/Constants.java | 5 ++--- src/org/usfirst/frc/team3501/robot/OI.java | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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, -- 2.30.2