import edu.wpi.first.wpilibj.command.Command;
+/***
+ * This command will set the winch motor to a specified speed.
+ *
+ * pre-condition: This command must be run by a button in OI with method
+ * whileHeld()
+ *
+ * post-condition: winch motor set to a specified speed.
+ *
+ * @author Meryem and Avi
+ *
+ */
+
public class SetWinchSpeed extends Command {
double winchUpSpeed;
public SetWinchSpeed(double speed) {
requires(Robot.scaler);
winchUpSpeed = speed;
- if (winchUpSpeed > 1)
- winchUpSpeed = 1;
- if (winchUpSpeed < -1)
- winchUpSpeed = -1;
}
@Override