X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommandgroups%2FShoot.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommandgroups%2FShoot.java;h=cd2fe3371ba471ac43b4998582e2242e493b9932;hp=18e3568a4a824c0cb8308edf0541a330014d97f3;hb=b70398a7d5ac5f4ce64156d84227ccb4828c0615;hpb=7ba6bc91b8cf7205e05cdb974dc80fdd668ebe59 diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/Shoot.java b/src/org/usfirst/frc/team3501/robot/commandgroups/Shoot.java index 18e3568..cd2fe33 100644 --- a/src/org/usfirst/frc/team3501/robot/commandgroups/Shoot.java +++ b/src/org/usfirst/frc/team3501/robot/commandgroups/Shoot.java @@ -1,28 +1,19 @@ package org.usfirst.frc.team3501.robot.commandgroups; +import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheel; +import org.usfirst.frc.team3501.robot.commands.shooter.RunIndexWheel; + import edu.wpi.first.wpilibj.command.CommandGroup; +import edu.wpi.first.wpilibj.command.WaitCommand; /** * */ public class Shoot extends CommandGroup { - public Shoot() { - // Add Commands here: - // e.g. addSequential(new Command1()); - // addSequential(new Command2()); - // these will run in order. - - // To run multiple commands at the same time, - // use addParallel() - // e.g. addParallel(new Command1()); - // addSequential(new Command2()); - // Command1 and Command2 will run in parallel. - - // A command group will require all of the subsystems that each member - // would require. - // e.g. if Command1 requires chassis, and Command2 requires arm, - // a CommandGroup containing them would require both the chassis and the - // arm. - } + public Shoot(double time) { + addParallel(new RunFlyWheel(time)); + addSequential(new WaitCommand(2)); + addParallel(new RunIndexWheel(time - 2)); + } }