limit avec requin manuel
This commit is contained in:
		@@ -27,7 +27,12 @@ public class requin_manuel extends Command {
 | 
			
		||||
  // Called every time the scheduler runs while the command is scheduled.
 | 
			
		||||
  @Override
 | 
			
		||||
  public void execute() {
 | 
			
		||||
    requin.rotationer(x.getAsDouble());
 | 
			
		||||
    if(requin.enHaut()){
 | 
			
		||||
    requin.rotationer(0);  
 | 
			
		||||
    }
 | 
			
		||||
    else{
 | 
			
		||||
      requin.rotationer(x.getAsDouble());
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Called once the command ends or is interrupted.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user