fix runwinchcontinuous comments
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / RunWinchContinuous.java
index 381a80acd63d17f77a9729910bceffb8cb5a0a41..6b8db75cc2c8eee9ccc09bb0572eeec1257c75f9 100644 (file)
@@ -5,7 +5,13 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs the winch continuously at a given motor value
+ * This command runs the drive train motors (which runs the winch) continuously
+ * at a specified speed until the button triggering it is released
+ *
+ * pre-condition: This command must be run by a button in OI. The robot must be
+ * attached to the rope.
+ *
+ * post-condition: Drive train motors set to a specified speed.
  *
  * @author shivanighanta
  *
@@ -13,15 +19,20 @@ import edu.wpi.first.wpilibj.command.Command;
 public class RunWinchContinuous extends Command {
   private double motorVal;
 
+  /**
+   * See JavaDoc comment in class for details
+   *
+   * @param motorVal
+   *          value range is from -1 to 1
+   */
   public RunWinchContinuous(double motorVal) {
-    requires(Robot.getClimber());
+    requires(Robot.getDriveTrain());
     this.motorVal = motorVal;
   }
 
   @Override
   protected void initialize() {
-    Robot.getClimber().setMotorValues(motorVal);
-
+    Robot.getDriveTrain().setMotorValues(motorVal, motorVal);
   }
 
   @Override
@@ -36,7 +47,7 @@ public class RunWinchContinuous extends Command {
 
   @Override
   protected void end() {
-    Robot.getClimber().stop();
+
   }
 
   @Override