Change to more descriptive names
authorKevin Zhang <icestormf1@gmail.com>
Tue, 16 Feb 2016 19:28:26 +0000 (11:28 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Tue, 16 Feb 2016 19:28:26 +0000 (11:28 -0800)
src/org/usfirst/frc/team3501/robot/Constants.java
src/org/usfirst/frc/team3501/robot/OI.java
src/org/usfirst/frc/team3501/robot/commands/auton/LiftRobot.java

index df64a8157f983c29d9c6d3d46e62047895906256..df2ed0b6b61b87bb749bbfb57c7703532c763fdf 100644 (file)
@@ -86,11 +86,11 @@ public class Constants {
 
     // Winch speeds
     public final static double WINCH_STOP_SPEED = 0.0;
-    public final static double WINCH_IN_SPEED = 0;
+    public final static double SCALE_SPEED = 0;
     public final static double SECONDS_TO_CLAMP = 2.0;
 
     // Winch timeout
-    public final static int WINCH_TIMEOUT = 0;
+    public final static int SECONDS_TO_SCALE = 0;
 
     public static boolean SCALING = false;
 
index ad43c2a1ef3f163b884781742b6c721fa7502cb1..aa58ffccde0c62a84520a6426eeaf1a3154be266 100644 (file)
@@ -131,7 +131,7 @@ public class OI {
       // intake button stops the winch
       // shoot button extends the lift
       toggleShooter.whenPressed(new RunWinchContinuous(
-          Constants.Scaler.WINCH_IN_SPEED, Constants.Scaler.WINCH_TIMEOUT));
+          Constants.Scaler.SCALE_SPEED, Constants.Scaler.SECONDS_TO_SCALE));
       compactRobot_1.whenPressed(new RetractLift());
       compactRobot_2.whenPressed(new RetractLift());
 
index dcf2095293c978f11363496871020834c02e537e..a2f1f26290329e4c21889befc8ef96bd520599e1 100755 (executable)
@@ -19,7 +19,7 @@ public class LiftRobot extends CommandGroup {
   public LiftRobot() {
     requires(Robot.scaler);
 
-    addSequential(new RunWinchContinuous(Constants.Scaler.WINCH_IN_SPEED, Constants.Scaler.WINCH_TIMEOUT));
+    addSequential(new RunWinchContinuous(Constants.Scaler.SCALE_SPEED, Constants.Scaler.SECONDS_TO_SCALE));
     addSequential(new StopWinch());
   }
 }