Commit | Line | Data |
---|---|---|
e81578e3 LH |
1 | package org.usfirst.frc.team3501.robot.autons; |
2 | ||
5b3b1652 | 3 | import org.usfirst.frc.team3501.bases.CommandGroup; |
3cd438bd | 4 | import org.usfirst.frc.team3501.robot.Robot; |
e81578e3 LH |
5 | import org.usfirst.frc.team3501.robot.commands.*; |
6 | ||
e81578e3 LH |
7 | public class PickUpContainer extends CommandGroup { |
8 | ||
9 | public PickUpContainer() { | |
10 | super("PickUpContainer"); | |
11 | ||
3cd438bd LH |
12 | requires(Robot.arm); |
13 | requires(Robot.claw); | |
14 | ||
e81578e3 LH |
15 | queueCommands(); |
16 | } | |
17 | ||
18 | private void queueCommands() { | |
19 | addSequential(new CloseClaw()); | |
b2640783 LH |
20 | addSequential(new MoveArmFor( |
21 | Robot.autonData.getTime("pickup_container"), | |
22 | Robot.autonData.getSpeed("pickup_container"))); | |
e81578e3 LH |
23 | } |
24 | } |