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