big refactor of command/commandbase/commandgroup. also add auton read from file.
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / autons / PickUpContainer.java
CommitLineData
e81578e3
LH
1package org.usfirst.frc.team3501.robot.autons;
2
3cd438bd 3import org.usfirst.frc.team3501.robot.Robot;
e81578e3
LH
4import org.usfirst.frc.team3501.robot.commands.*;
5
e81578e3
LH
6public class PickUpContainer extends CommandGroup {
7
8 public PickUpContainer() {
9 super("PickUpContainer");
10
3cd438bd
LH
11 requires(Robot.arm);
12 requires(Robot.claw);
13
e81578e3
LH
14 queueCommands();
15 }
16
17 private void queueCommands() {
18 addSequential(new CloseClaw());
b2640783
LH
19 addSequential(new MoveArmFor(
20 Robot.autonData.getTime("pickup_container"),
21 Robot.autonData.getSpeed("pickup_container")));
e81578e3
LH
22 }
23}