X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FMaintainClimbedPosition.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FMaintainClimbedPosition.java;h=0000000000000000000000000000000000000000;hp=88ca8e0904198a6a7f7eb4ca61bd81537ea6a56a;hb=150f450f2b4f9e6094d71007507a7b877e05328a;hpb=9ca89e45fa84b2ec93bc6adf60c7dde1e0a7defb diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/MaintainClimbedPosition.java b/src/org/usfirst/frc/team3501/robot/commands/climber/MaintainClimbedPosition.java deleted file mode 100644 index 88ca8e0..0000000 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/MaintainClimbedPosition.java +++ /dev/null @@ -1,62 +0,0 @@ -package org.usfirst.frc.team3501.robot.commands.climber; - -import org.usfirst.frc.team3501.robot.Robot; -import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; - -import edu.wpi.first.wpilibj.command.Command; - -/** - * This command runs the winch at a specified speed when the robot has completed - * the climb and when the button triggering it is pressed. This command also - * makes the drive train motors run because the winch is controlled by the drive - * train. - * - * pre-condition: This command is run by a button in OI. The robot must have - * completed climbing. - * - * post-condition: Winch motor set to a specified speed. - * - * @param motorVal - * value range is from -1 to 1 - * - * @author shivanighanta - * - */ -public class MaintainClimbedPosition extends Command { - - /** - * See JavaDoc comment in class for details - * - * @param time - * time in seconds to run the winch - */ - public MaintainClimbedPosition() { - requires(Robot.getDriveTrain()); - } - - @Override - protected void initialize() { - } - - @Override - protected void execute() { - Robot.getDriveTrain().setMotorValues(DriveTrain.MAINTAIN_CLIMBED_POSITION, - DriveTrain.MAINTAIN_CLIMBED_POSITION); - - } - - @Override - protected boolean isFinished() { - return false; - } - - @Override - protected void end() { - Robot.getDriveTrain().stop(); - } - - @Override - protected void interrupted() { - end(); - } -}