mode auto
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user