encodeur
This commit is contained in:
		| @@ -149,7 +149,7 @@ public class RobotContainer { | ||||
|     manette2.povRight().whileTrue(new GrimpeurBas(Grimpeur)); | ||||
|      //Pince manuel | ||||
|      pince.setDefaultCommand(new RunCommand(()->{ | ||||
|       pince.pivote(MathUtil.applyDeadband(manette2.getRightY()*manette2.getRightY()*manette2.getRightY(), 0.05)); | ||||
|       pince.pivote(MathUtil.applyDeadband((manette2.getRightY()*manette2.getRightY()*manette2.getRightY())/3, 0.05)); | ||||
|     }, pince)); | ||||
|  | ||||
|     //Elevateur manuel | ||||
|   | ||||
| @@ -31,7 +31,7 @@ public class StationPince extends Command { | ||||
|   @Override | ||||
|   public void execute() { | ||||
|     pince.aspirecoral(0.5); | ||||
|     if(pince.encodeurpivot()<=9.8 && pince.encodeurpivot()>=12){ | ||||
|     if(pince.encodeurpivot()<=11 && pince.encodeurpivot()>=12.6){ | ||||
|       pince.pivote(0); | ||||
|     } | ||||
|     else if(pince.encodeurpivot()>=9.8){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user