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);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user