fixed mode manuel du bras

This commit is contained in:
Olivier Demers 2023-03-20 19:53:25 +00:00
parent a34723f4cb
commit d1e82b7474
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}

View File

@ -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());}
}