This commit is contained in:
samuel desharnais
2024-02-22 18:01:10 -05:00
parent e9f33581fa
commit a984da52fd
3 changed files with 58 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ import frc.robot.command.GuiderHaut;
import frc.robot.command.Lancer;
import frc.robot.command.LancerAmp;
import frc.robot.command.LancerNote;
import frc.robot.command.LancerTrape;
import frc.robot.command.Lancerampli;
import frc.robot.command.Limelight_tracker;
import frc.robot.command.PistonFerme;
@@ -93,7 +94,7 @@ public class RobotContainer {
joystick.button(5).whileTrue(new LancerAmp(lanceur, accumulateur));
joystick.button(4).whileTrue(new ParallelCommandGroup(new Lancer(lanceur,limelight),new Limelight_tracker(limelight,drive)));
joystick.button(2).whileTrue(new ParallelCommandGroup(new Lancerampli(lanceur,limelight),new Limelight_tracker(limelight,drive)));
joystick.button(6).whileTrue(new LancerTrape(lanceur, accumulateur));
// deplacement
configureBindings();
drive.setDefaultCommand(new RunCommand(()->{