b930f124f29cd954783657d395022fc7a2ee5674
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / autons / PickUpContainer.java
1 package org.usfirst.frc.team3501.robot.autons;
2
3 import org.usfirst.frc.team3501.robot.Robot;
4 import org.usfirst.frc.team3501.robot.RobotMap;
5 import org.usfirst.frc.team3501.robot.commands.*;
6
7 import edu.wpi.first.wpilibj.command.CommandGroup;
8
9 public class PickUpContainer extends CommandGroup {
10
11 public PickUpContainer() {
12 super("PickUpContainer");
13
14 requires(Robot.arm);
15 requires(Robot.claw);
16
17 queueCommands();
18 }
19
20 private void queueCommands() {
21 addSequential(new CloseClaw());
22 addSequential(new MoveArmFor(RobotMap.PICKUP_TIME, RobotMap.PICKUP_SPEED));
23 }
24 }