enlever led

This commit is contained in:
Antoine PerreaultE
2024-02-21 18:24:06 -05:00
parent d92760a906
commit 51c6d714b5
4 changed files with 2 additions and 137 deletions

View File

@@ -21,7 +21,6 @@ import edu.wpi.first.wpilibj2.command.button.CommandJoystick;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine;
// Commands
import frc.robot.command.AllumeLED;
import frc.robot.command.Balayer;
import frc.robot.command.GrimpeurDroit;
import frc.robot.command.GrimpeurGauche;
@@ -33,7 +32,6 @@ 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;
import frc.robot.command.PistonOuvre;
// Subsystems
import frc.robot.subsystem.Accumulateur;
@@ -41,7 +39,6 @@ import frc.robot.subsystem.Balayeuse;
import frc.robot.subsystem.Drive;
import frc.robot.subsystem.Grimpeur;
import frc.robot.subsystem.Guideur;
import frc.robot.subsystem.LED;
import frc.robot.subsystem.Lanceur;
import frc.robot.subsystem.Limelight;
@@ -56,7 +53,6 @@ public class RobotContainer {
Guideur guideur = new Guideur();
Lanceur lanceur = new Lanceur();
Limelight limelight = new Limelight();
LED LED = new LED();
CommandJoystick joystick = new CommandJoystick(0);
CommandXboxController manette = new CommandXboxController(1);
/*private final Relay blue = new Relay(0);
@@ -71,8 +67,6 @@ public class RobotContainer {
Lancerampli lancerampli = new Lancerampli(lanceur,limelight);
GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftY);
GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getRightY);
AllumeLED allumeLED = new AllumeLED(LED, accumulateur);
Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED);
public RobotContainer() {
dashboard.addCamera("limelight", "limelight","limelight.local:5800")
@@ -83,6 +77,8 @@ public class RobotContainer {
.withSize(4, 4)
.withPosition(3, 0);
CameraServer.startAutomaticCapture();
NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur));
NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur));
NamedCommands.registerCommand("piston", new PistonFerme(grimpeur));
@@ -109,8 +105,6 @@ public class RobotContainer {
grimpeur.droit(MathUtil.applyDeadband(-manette.getLeftY(), 0.2));
grimpeur.gauche(MathUtil.applyDeadband(-manette.getRightY(),0.2 ));}
,grimpeur));
LED.setDefaultCommand(allumeLED);
dashboard.add("autochooser",autoChooser)
.withSize(2,1)