This commit is contained in:
2024-02-08 18:59:15 -05:00
7 changed files with 67 additions and 18 deletions

View File

@@ -33,6 +33,7 @@ import frc.robot.command.Lancer;
import frc.robot.command.LancerNote;
import frc.robot.command.Lancerampli;
import frc.robot.command.Limelight_tracker;
import frc.robot.command.PistonFerme;
import frc.robot.command.Pistongrimpeur;
// Subsystems
import frc.robot.subsystem.Accumulateur;
@@ -61,6 +62,7 @@ public class RobotContainer {
CommandJoystick joystick = new CommandJoystick(0);
CommandXboxController manette = new CommandXboxController(1);
//command
PistonFerme pistonFerme = new PistonFerme(grimpeur);
Limelight_tracker limelight_tracker = new Limelight_tracker(limelight,drive);
Balayer balayer = new Balayer(balayeuse, accumulateur);
GuiderHaut guiderHaut = new GuiderHaut(guideur);
@@ -76,6 +78,7 @@ public class RobotContainer {
dashboard.addCamera("limelight", "limelight","limelight.local:5800");
NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur));
NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur));
NamedCommands.registerCommand("piston", new PistonFerme(grimpeur));
autoChooser = AutoBuilder.buildAutoChooser();
CameraServer.startAutomaticCapture();