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.
@Override
public void execute() {
drive.withVelocityX(0.2*MaxSpeed);
drive.withVelocityY(0.2*MaxSpeed);
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {
drive.withVelocityX(0);
drive.withVelocityY(0);
}
// 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.
@Override
public void execute() {
bougie.Bleu();
if(requin.encodeur()<=530 && requin.encodeur()>=430){
requin.rotationer(0);
}

View File

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