This commit is contained in:
EdwardFaucher 2022-11-29 17:55:06 -05:00
parent 38118f6615
commit d221d679a1

View File

@ -5,6 +5,7 @@
package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.subsystems.Poussoir;
import frc.robot.subsystems.Pistonshaker;
@ -22,8 +23,10 @@ public class BoutonA extends CommandBase {
// Called when the command is initially scheduled.
@Override
public void initialize() {
poussoir.pousser();
pistonshaker.rentrerpiston();
new SequentialCommandGroup (
new Activer_poussoir(poussoir).withTimeout(2),
new Activershaker(pistonshaker));
}
// Called every time the scheduler runs while the command is scheduled.