From faa906d6b754ef40cec4de238f071b955d854fdd Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Sat, 24 Feb 2024 13:36:13 -0500 Subject: [PATCH] --- .../java/frc/robot/command/GrimpeurDroit.java | 10 ---------- .../java/frc/robot/command/GrimpeurGauche.java | 15 --------------- 2 files changed, 25 deletions(-) diff --git a/src/main/java/frc/robot/command/GrimpeurDroit.java b/src/main/java/frc/robot/command/GrimpeurDroit.java index 44c937f..135a12e 100644 --- a/src/main/java/frc/robot/command/GrimpeurDroit.java +++ b/src/main/java/frc/robot/command/GrimpeurDroit.java @@ -30,16 +30,6 @@ public class GrimpeurDroit extends Command { @Override public void execute() { grimpeur.droit(doubleSupplier.getAsDouble()); - if(grimpeur.getpitch()<-15){ - grimpeur.droit(-doubleSupplier.getAsDouble()); - - } - else if(grimpeur.getpitch()>15){ - grimpeur.droit(doubleSupplier.getAsDouble()); - } - else{ - grimpeur.droit(0); - } } // Called once the command ends or is interrupted. diff --git a/src/main/java/frc/robot/command/GrimpeurGauche.java b/src/main/java/frc/robot/command/GrimpeurGauche.java index a1b071b..05b78ea 100644 --- a/src/main/java/frc/robot/command/GrimpeurGauche.java +++ b/src/main/java/frc/robot/command/GrimpeurGauche.java @@ -31,21 +31,6 @@ public class GrimpeurGauche extends Command { @Override public void execute() { grimpeur.gauche(doubleSupplier.getAsDouble()); - if(grimpeur.getpitch()<-15){ - grimpeur.gauche(doubleSupplier.getAsDouble()); - } - else if(grimpeur.getpitch()>15){ - grimpeur.gauche(-doubleSupplier.getAsDouble()); - } - else{ - grimpeur.gauche(0); - } - if(grimpeur.encoderg()<0){ - grimpeur.gauche(doubleSupplier.getAsDouble()); - } - else{ - grimpeur.gauche(0); - } } // Called once the command ends or is interrupted.