tmjf
This commit is contained in:
parent
38118f6615
commit
d221d679a1
@ -5,6 +5,7 @@
|
|||||||
package frc.robot.commands;
|
package frc.robot.commands;
|
||||||
|
|
||||||
import edu.wpi.first.wpilibj2.command.CommandBase;
|
import edu.wpi.first.wpilibj2.command.CommandBase;
|
||||||
|
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
|
||||||
import frc.robot.subsystems.Poussoir;
|
import frc.robot.subsystems.Poussoir;
|
||||||
import frc.robot.subsystems.Pistonshaker;
|
import frc.robot.subsystems.Pistonshaker;
|
||||||
|
|
||||||
@ -22,8 +23,10 @@ public class BoutonA extends CommandBase {
|
|||||||
// Called when the command is initially scheduled.
|
// Called when the command is initially scheduled.
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
poussoir.pousser();
|
new SequentialCommandGroup (
|
||||||
pistonshaker.rentrerpiston();
|
new Activer_poussoir(poussoir).withTimeout(2),
|
||||||
|
new Activershaker(pistonshaker));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called every time the scheduler runs while the command is scheduled.
|
// Called every time the scheduler runs while the command is scheduled.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user