mode auto

This commit is contained in:
Antoine PerreaultE 2025-03-04 10:23:54 -05:00
parent a420d3ff2f
commit 9ce0d79903
3 changed files with 3 additions and 4 deletions

View File

@ -31,13 +31,13 @@ public class AvancerAuto extends Command {
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override
public void execute() { public void execute() {
drive.withVelocityX(0.2*MaxSpeed); drive.withVelocityY(0.2*MaxSpeed);
} }
// Called once the command ends or is interrupted. // Called once the command ends or is interrupted.
@Override @Override
public void end(boolean interrupted) { public void end(boolean interrupted) {
drive.withVelocityX(0); drive.withVelocityY(0);
} }
// Returns true when the command should end. // Returns true when the command should end.

View File

@ -27,7 +27,6 @@ public class L1Requin extends Command {
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override
public void execute() { public void execute() {
bougie.Bleu();
if(requin.encodeur()<=530 && requin.encodeur()>=430){ if(requin.encodeur()<=530 && requin.encodeur()>=430){
requin.rotationer(0); requin.rotationer(0);
} }

View File

@ -13,7 +13,7 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Bougie extends SubsystemBase { public class Bougie extends SubsystemBase {
CANdle candle = new CANdle(23); CANdle candle = new CANdle(23);
CANdleConfiguration config = new CANdleConfiguration(); CANdleConfiguration config = new CANdleConfiguration();
RainbowAnimation rainbowAnim = new RainbowAnimation(1, 0.5, 64); RainbowAnimation rainbowAnim = new RainbowAnimation(1, 0.5, 68);
/** Creates a new Bougie. */ /** Creates a new Bougie. */
public Bougie() { public Bougie() {
config.brightnessScalar = 0.5; config.brightnessScalar = 0.5;