Commit | Line | Data |
---|---|---|
e81578e3 LH |
1 | package org.usfirst.frc.team3501.robot.autons; |
2 | ||
3cd438bd | 3 | import org.usfirst.frc.team3501.robot.Robot; |
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 | ||
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 | } |