grimpeur manuel
This commit is contained in:
parent
17875a3d15
commit
1e5b837267
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user