| 1 | package org.usfirst.frc.team3501.robot.commandgroups; |
| 2 | |
| 3 | import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheel; |
| 4 | import org.usfirst.frc.team3501.robot.commands.shooter.RunIndexWheel; |
| 5 | |
| 6 | import edu.wpi.first.wpilibj.command.CommandGroup; |
| 7 | import edu.wpi.first.wpilibj.command.WaitCommand; |
| 8 | |
| 9 | /** |
| 10 | * |
| 11 | */ |
| 12 | public class Shoot extends CommandGroup { |
| 13 | |
| 14 | public Shoot(double time) { |
| 15 | addParallel(new RunFlyWheel(time)); |
| 16 | addSequential(new WaitCommand(2)); |
| 17 | addParallel(new RunIndexWheel(time - 2)); |
| 18 | } |
| 19 | } |