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