1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
.IntakeArm
;
4 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
6 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
9 * This command group will move the arm to the specified level. Levels
10 * correspond to the angles stored in the potAngles array list saved in the
11 * IntakeArm subsystem. (starting from level 0)
13 * pre-condition: level >= 0 && level < potAngles.length
15 * post-condition: arm has moved to specified level
19 public class MoveIntakeArmToLevel
extends CommandGroup
{
21 public MoveIntakeArmToLevel(int level
) {
22 requires(Robot
.intakeArm
);
24 if (level
< 0 || level
>= Robot
.intakeArm
.potAngles
.length
)
27 addSequential(new MoveIntakeArmToAngle(Robot
.intakeArm
.potAngles
[level
],
28 IntakeArm
.DEFAULT_INTAKE_ARM_SPEED
));