Add JoystickButton objects and constants for Drivetrain, Climer, Intake, and Shooter
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / RunWinchContinuous.java
index e20121024a0528b7d3a8c0637f96bc154f4a39a2..65277997b70fd20ccad3d85fbe60b2b5a8eb23c1 100644 (file)
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.command.Command;
  *
  */
 public class RunWinchContinuous extends Command {
-  private double motorVal;
 
   /**
    * See JavaDoc comment in class for details
@@ -25,14 +24,15 @@ public class RunWinchContinuous extends Command {
    * @param motorVal
    *          value range is from -1 to 1
    */
-  public RunWinchContinuous(double motorVal) {
+  public RunWinchContinuous() {
     requires(Robot.getDriveTrain());
-    this.motorVal = motorVal;
   }
 
   @Override
   protected void initialize() {
-    Robot.getDriveTrain().setMotorValues(motorVal, motorVal);
+    Robot.getDriveTrain().setMotorValues(
+        Robot.getDriveTrain().getClimbingSpeed(),
+        Robot.getDriveTrain().getClimbingSpeed());
   }
 
   @Override