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