This commit is contained in:
Antoine PerreaultE 2024-02-28 17:58:59 -05:00
parent 805ba5e7aa
commit a41957b6b2

View File

@ -31,6 +31,7 @@ import frc.robot.command.LancerTrape;
import frc.robot.command.Lancerampli;
import frc.robot.command.Limelight_tracker;
import frc.robot.command.RestGyro;
import frc.robot.command.Debalayer;
// Subsystems
import frc.robot.subsystem.Accumulateur;
import frc.robot.subsystem.Balayeuse;
@ -65,6 +66,8 @@ public class RobotContainer {
Lancerampli lancerampli = new Lancerampli(lanceur,limelight);
GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftY);
GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getRightY);
Debalayer debalayer = new Debalayer(balayeuse, accumulateur);
public RobotContainer() {
dashboard.addCamera("limelight", "limelight","limelight.local:5800")
@ -94,6 +97,7 @@ public class RobotContainer {
joystick.button(2).whileTrue(new ParallelCommandGroup(new Lancerampli(lanceur,limelight),new Limelight_tracker(limelight,drive)));
joystick.button(6).whileTrue(new LancerTrape(lanceur, accumulateur));
joystick.button(7).whileTrue(new Limelight_tracker(limelight, drive));
joystick.button(8).whileTrue(new Debalayer(balayeuse, accumulateur));
// deplacement
configureBindings();