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.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 | ||
3cd438bd LH |
14 | requires(Robot.arm); |
15 | requires(Robot.claw); | |
16 | ||
e81578e3 LH |
17 | queueCommands(); |
18 | } | |
19 | ||
20 | private void queueCommands() { | |
21 | addSequential(new CloseClaw()); | |
22 | addSequential(new MoveArmFor(RobotMap.PICKUP_TIME, RobotMap.PICKUP_SPEED)); | |
23 | } | |
24 | } |