From 3f8abad00989a4b9de7c02f75a44341f116be403 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Tue, 20 Feb 2024 18:12:19 -0500 Subject: [PATCH 1/3] d --- src/main/java/frc/robot/RobotContainer.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index aca3472..853f7c6 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -71,21 +71,19 @@ public class RobotContainer { AllumeLED allumeLED = new AllumeLED(LED, accumulateur); Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED); public RobotContainer() { + dashboard.addCamera("limelight", "limelight","limelight.local:5800") .withSize(3,4) .withPosition(7,0); + dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream") .withSize(4, 4) .withPosition(3, 0); + NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur)); NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur)); NamedCommands.registerCommand("piston", new PistonFerme(grimpeur)); autoChooser = AutoBuilder.buildAutoChooser(); - - manette.a().whileTrue(new GuiderBas(guideur)); - dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream") - .withSize(4, 4) - .withPosition(3, 0); manette.a().whileTrue(new GuiderBas(guideur)); manette.b().whileTrue(new GuiderHaut(guideur)); From 1dadb3cb771940490816d76fa37480624f00c999 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Tue, 20 Feb 2024 18:13:35 -0500 Subject: [PATCH 2/3] s --- src/main/java/frc/robot/RobotContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 853f7c6..5ec814e 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -71,7 +71,7 @@ public class RobotContainer { AllumeLED allumeLED = new AllumeLED(LED, accumulateur); Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED); public RobotContainer() { - + dashboard.addCamera("limelight", "limelight","limelight.local:5800") .withSize(3,4) .withPosition(7,0); @@ -105,7 +105,7 @@ public class RobotContainer { grimpeur.setDefaultCommand(new RunCommand(()->{ grimpeur.droit(MathUtil.applyDeadband(-manette.getLeftY(), 0.2)); grimpeur.gauche(MathUtil.applyDeadband(-manette.getRightY(),0.2 ));} - ,grimpeur)); + ,grimpeur)); LED.setDefaultCommand(allumeLED); From aa4aee45d046b5ff8106d77c85e22811def1f261 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Tue, 20 Feb 2024 18:26:35 -0500 Subject: [PATCH 3/3] s --- src/main/java/frc/robot/command/LancerAmp.java | 2 +- src/main/java/frc/robot/subsystem/Drive.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/command/LancerAmp.java b/src/main/java/frc/robot/command/LancerAmp.java index 30380ef..df9bf7e 100644 --- a/src/main/java/frc/robot/command/LancerAmp.java +++ b/src/main/java/frc/robot/command/LancerAmp.java @@ -25,7 +25,7 @@ public class LancerAmp extends Command { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - double vitesse = 0.1; + double vitesse = 0.15; lancer.lanceramp(); if(lancer.vitesse(vitesse)>vitesse){ accumulateur.Accumuler(); diff --git a/src/main/java/frc/robot/subsystem/Drive.java b/src/main/java/frc/robot/subsystem/Drive.java index 54c88ab..d55cd6e 100644 --- a/src/main/java/frc/robot/subsystem/Drive.java +++ b/src/main/java/frc/robot/subsystem/Drive.java @@ -21,9 +21,9 @@ import swervelib.parser.SwerveParser; public class Drive extends SubsystemBase { /** Creates a new Drive. */ - public static final boolean kFrontLeftDriveMotorReversed = false; - public static final boolean kBackLeftDriveMotorReversed = false; - public static final boolean kFrontRightDriveMotorReversed = true; + public static final boolean kFrontLeftDriveMotorReversed = true; + public static final boolean kBackLeftDriveMotorReversed = true; + public static final boolean kFrontRightDriveMotorReversed = false; public static final boolean kBackRightDriveMotorReversed = true; SwerveDrive swerveDrive;