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