This commit is contained in:
EdwardFaucher
2023-03-20 18:47:03 -04:00
parent d4a0188c04
commit c121ff5ec0
3 changed files with 12 additions and 6 deletions

View File

@ -30,9 +30,11 @@ public class BrasManuel extends CommandBase {
@Override
public void execute() {
if(doubleSupplier.getAsDouble()>0.2 || doubleSupplier.getAsDouble()<-0.2){
brasTelescopique.AvanceRecule(doubleSupplier.getAsDouble());
brasTelescopique.AvanceRecule(doubleSupplier.getAsDouble()*0.5);
}
else{
brasTelescopique.AvanceRecule(0);
}
}
// Called once the command ends or is interrupted.

View File

@ -28,9 +28,13 @@ public class PivotManuel extends CommandBase {
@Override
public void execute() {
if(doubleSupplier.getAsDouble()>0.2 || doubleSupplier.getAsDouble()<-0.2){
pivot.monteDescendre(doubleSupplier.getAsDouble());}
pivot.monteDescendre(-doubleSupplier.getAsDouble()*0.5)
;}
else{
pivot.monteDescendre(0);
}
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}