s
This commit is contained in:
parent
5f64677db7
commit
21c256a8b4
@ -13,9 +13,6 @@ import edu.wpi.first.wpilibj2.command.WaitUntilCommand;
|
||||
import frc.robot.subsystems.Accumulateur;
|
||||
import frc.robot.subsystems.Lanceur;
|
||||
|
||||
// NOTE: Consider using this command inline, rather than writing a subclass. For more
|
||||
// information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
public class Lancer extends ParallelCommandGroup {
|
||||
private Lanceur lanceur;
|
||||
private Accumulateur accumulateur;
|
||||
@ -28,7 +25,7 @@ public class Lancer extends ParallelCommandGroup {
|
||||
// Add your commands in the addCommands() call, e.g.
|
||||
// addCommands(new FooCommand(), new BarCommand());
|
||||
addCommands(new Lancez(lanceur),
|
||||
new SequentialCommandGroup(new WaitUntilCommand(()->lanceur.vitesse()>vitesse.getDouble(0)))
|
||||
,new AccAvancer(accumulateur),new AccReculer(accumulateur));
|
||||
new SequentialCommandGroup(new WaitUntilCommand(()->lanceur.vitesse()>vitesse.getDouble(0))),
|
||||
new AccAvancer(accumulateur),new AccReculer(accumulateur));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user