From d1e82b747465239a22021c6be5d0a2d5048c04d8 Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Mon, 20 Mar 2023 19:53:25 +0000 Subject: [PATCH] fixed mode manuel du bras --- src/main/java/frc/robot/commands/bras/BrasManuel.java | 2 +- src/main/java/frc/robot/commands/bras/PivotManuel.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/commands/bras/BrasManuel.java b/src/main/java/frc/robot/commands/bras/BrasManuel.java index b930d31..844c681 100644 --- a/src/main/java/frc/robot/commands/bras/BrasManuel.java +++ b/src/main/java/frc/robot/commands/bras/BrasManuel.java @@ -29,7 +29,7 @@ public class BrasManuel extends CommandBase { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if(doubleSupplier.getAsDouble()>0.2 && doubleSupplier.getAsDouble()<-0.2){ + if(doubleSupplier.getAsDouble()>0.2 || doubleSupplier.getAsDouble()<-0.2){ brasTelescopique.AvanceRecule(doubleSupplier.getAsDouble()); } diff --git a/src/main/java/frc/robot/commands/bras/PivotManuel.java b/src/main/java/frc/robot/commands/bras/PivotManuel.java index 375ce9c..32979d0 100644 --- a/src/main/java/frc/robot/commands/bras/PivotManuel.java +++ b/src/main/java/frc/robot/commands/bras/PivotManuel.java @@ -27,7 +27,7 @@ public class PivotManuel extends CommandBase { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if(doubleSupplier.getAsDouble()>0.2 && doubleSupplier.getAsDouble()<-0.2){ + if(doubleSupplier.getAsDouble()>0.2 || doubleSupplier.getAsDouble()<-0.2){ pivot.monteDescendre(doubleSupplier.getAsDouble());} }