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