X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FMoveIntakeArmToLevel.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FMoveIntakeArmToLevel.java;h=0000000000000000000000000000000000000000;hb=027452180cc75fa58cd6305d9eb351ec64b2345f;hp=11a95270898d65f46447ca9b6593398236cd804e;hpb=5cff891038f613483040c7f1a2b5b554adcd3313;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArmToLevel.java b/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArmToLevel.java deleted file mode 100755 index 11a95270..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArmToLevel.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.usfirst.frc.team3501.robot.commands.intakearm; - -import org.usfirst.frc.team3501.robot.Constants.IntakeArm; -import org.usfirst.frc.team3501.robot.Robot; - -import edu.wpi.first.wpilibj.command.CommandGroup; - -/** - * This command group will move the arm to the specified level. Levels - * correspond to the angles stored in the potAngles array list saved in the - * IntakeArm subsystem. (starting from level 0) - * - * pre-condition: level >= 0 && level < potAngles.length - * - * post-condition: arm has moved to specified level - * - * @author Meryem - */ -public class MoveIntakeArmToLevel extends CommandGroup { - - public MoveIntakeArmToLevel(int level) { - requires(Robot.intakeArm); - - if (level < 0 || level >= Robot.intakeArm.potAngles.length) - this.end(); - - addSequential(new MoveIntakeArmToAngle(Robot.intakeArm.potAngles[level], - IntakeArm.DEFAULT_INTAKE_ARM_SPEED)); - - } -}