grimpeur manuel
This commit is contained in:
		@@ -4,19 +4,15 @@
 | 
			
		||||
 | 
			
		||||
package frc.robot.commands.grimpeur;
 | 
			
		||||
 | 
			
		||||
import java.util.function.DoubleSupplier;
 | 
			
		||||
 | 
			
		||||
import edu.wpi.first.wpilibj2.command.Command;
 | 
			
		||||
import frc.robot.subsystems.Grimpeur;
 | 
			
		||||
 | 
			
		||||
/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */
 | 
			
		||||
public class GrimpeurManuel extends Command {
 | 
			
		||||
public class GrimpeurManuelhaut extends Command {
 | 
			
		||||
  private Grimpeur grimpeur;
 | 
			
		||||
  private DoubleSupplier x;
 | 
			
		||||
  /** Creates a new GrimpeurManuel. */
 | 
			
		||||
  public GrimpeurManuel(Grimpeur grimpeur,DoubleSupplier x) {
 | 
			
		||||
  public GrimpeurManuelhaut(Grimpeur grimpeur) {
 | 
			
		||||
    this.grimpeur = grimpeur;
 | 
			
		||||
    this.x = x;
 | 
			
		||||
    addRequirements(grimpeur);
 | 
			
		||||
    // Use addRequirements() here to declare subsystem dependencies.
 | 
			
		||||
  }
 | 
			
		||||
@@ -31,8 +27,9 @@ public class GrimpeurManuel extends Command {
 | 
			
		||||
    if(grimpeur.stop()){
 | 
			
		||||
      grimpeur.grimpe(0);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    else{
 | 
			
		||||
    grimpeur.grimpe(x.getAsDouble());  
 | 
			
		||||
    grimpeur.grimpe(0.2);  
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
		Reference in New Issue
	
	Block a user