zdfgbg
This commit is contained in:
@ -65,7 +65,7 @@ public class PivoteBrasBas extends CommandBase {
|
||||
// Returns true when the command should end.
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return brasTelescopique.distance()>-13.5 && brasTelescopique.distance() <-15.5 && pivot.distance()<8.5 && pivot.distance()>10.5;
|
||||
return brasTelescopique.distance()>-13.5 && brasTelescopique.distance() <-14.5 && pivot.distance()<8.5 && pivot.distance()>9.5;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -41,10 +41,10 @@ public class PivoteBrasMilieux extends CommandBase {
|
||||
brasTelescopique.ouvrir();
|
||||
}
|
||||
if (pivot.distance()<43.5){
|
||||
pivot.monteDescendre(0.7);
|
||||
pivot.monteDescendre(0.6);
|
||||
}
|
||||
else if(pivot.distance()>44.5) {
|
||||
pivot.monteDescendre(-0.7);
|
||||
pivot.monteDescendre(-0.6);
|
||||
}
|
||||
else{
|
||||
pivot.monteDescendre(0);
|
||||
|
Reference in New Issue
Block a user