This commit is contained in:
samuel desharnais 2023-02-15 19:35:25 -05:00
parent bde4ca17a2
commit 9536969fce

View File

@ -33,6 +33,7 @@ import frc.robot.commands.BrakeOuvre;
import frc.robot.commands.GratteBaisser; import frc.robot.commands.GratteBaisser;
import frc.robot.commands.GratteMonte; import frc.robot.commands.GratteMonte;
import frc.robot.commands.Gyro; import frc.robot.commands.Gyro;
import frc.robot.commands.Reculer;
import frc.robot.commands.bras.FermePince; import frc.robot.commands.bras.FermePince;
import frc.robot.commands.bras.OuvrePince; import frc.robot.commands.bras.OuvrePince;
import frc.robot.commands.bras.PivotBrasRentre; import frc.robot.commands.bras.PivotBrasRentre;
@ -84,6 +85,11 @@ public RobotContainer() {
public Command getAutonomousCommand() { public Command getAutonomousCommand() {
return Commands.print("No autonomous command configured"); return Commands.print("No autonomous command configured");
return new SequentialCommandGroup(
new PivoteBrasMilieux(brasTelescopique, pivot),
new OuvrePince(pince),
new PivotBrasRentre(brasTelescopique, pivot).alongWith(new Reculer(basePilotable)),
new Gyro(basePilotable)
);
} }
} }