From 26d32e370713f7ed9e2773ee1c3c1a9db1e6046f Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Sat, 22 Feb 2025 12:48:56 -0500 Subject: [PATCH] amperage --- src/main/java/frc/robot/commands/AlgueExpire.java | 4 ++-- .../java/frc/robot/commands/CoralAlgueInspire.java | 2 +- src/main/java/frc/robot/commands/CoralExpire.java | 11 ++++++----- src/main/java/frc/robot/subsystems/Bougie.java | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main/java/frc/robot/commands/AlgueExpire.java b/src/main/java/frc/robot/commands/AlgueExpire.java index ab177d4..49606d7 100644 --- a/src/main/java/frc/robot/commands/AlgueExpire.java +++ b/src/main/java/frc/robot/commands/AlgueExpire.java @@ -27,8 +27,8 @@ public class AlgueExpire extends Command { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if(pince.emperagealgue()>8){ - pince.aspirealgue(0); + if(pince.emperagealgue()>60){ + pince.aspirealgue(-0.5); } else{ pince.aspirealgue(-0.5); diff --git a/src/main/java/frc/robot/commands/CoralAlgueInspire.java b/src/main/java/frc/robot/commands/CoralAlgueInspire.java index 4697090..b64185b 100644 --- a/src/main/java/frc/robot/commands/CoralAlgueInspire.java +++ b/src/main/java/frc/robot/commands/CoralAlgueInspire.java @@ -28,7 +28,7 @@ public class CoralAlgueInspire extends Command { @Override public void execute() { pince.aspirecoral(-.5); - if(pince.emperagealgue()>8){ + if(pince.emperagealgue()>60){ pince.aspirealgue(0); bougie.Bleu(); } diff --git a/src/main/java/frc/robot/commands/CoralExpire.java b/src/main/java/frc/robot/commands/CoralExpire.java index 15ec3c8..0879f50 100644 --- a/src/main/java/frc/robot/commands/CoralExpire.java +++ b/src/main/java/frc/robot/commands/CoralExpire.java @@ -26,12 +26,13 @@ public class CoralExpire extends Command { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if(pince.emperagecoral() > 8){ - pince.aspirecoral(0); - } - else{ + //if(pince.emperagecoral() > 60){ + // pince.aspirecoral(0); + //} + //else{ pince.aspirecoral(-.5); - bougie.Jaune();} + //bougie.Jaune(); + // } } // Called once the command ends or is interrupted. diff --git a/src/main/java/frc/robot/subsystems/Bougie.java b/src/main/java/frc/robot/subsystems/Bougie.java index 98bdf49..02cd2a8 100644 --- a/src/main/java/frc/robot/subsystems/Bougie.java +++ b/src/main/java/frc/robot/subsystems/Bougie.java @@ -11,7 +11,7 @@ import com.ctre.phoenix.led.RainbowAnimation; import edu.wpi.first.wpilibj2.command.SubsystemBase; public class Bougie extends SubsystemBase { - CANdle candle = new CANdle(5); + CANdle candle = new CANdle(23); CANdleConfiguration config = new CANdleConfiguration(); RainbowAnimation rainbowAnim = new RainbowAnimation(1, 0.5, 64); /** Creates a new Bougie. */