oui
This commit is contained in:
@@ -69,11 +69,11 @@ public class LimelighterAuto extends Command {
|
||||
if(angle >180){
|
||||
angle -= 360;
|
||||
}
|
||||
calcul = limelight3g.Calcule(botx, 4, boty, 4.6, angle) / 3;
|
||||
calcul = limelight3g.Calcule(botx, 4, boty, 4.6, angle) / 5;
|
||||
drivetrain.setControl(
|
||||
drive.withVelocityX(0).withVelocityY(0).withRotationalRate(calcul));
|
||||
System.out.println(calcul);
|
||||
if (calcul < 0.2 && calcul > -0.2) {
|
||||
if (calcul < 0.1 && calcul > -0.1) {
|
||||
drivetrain.setControl(drive.withRotationalRate(0));
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public class LimelighterAuto extends Command {
|
||||
// Returns true when the command should end.
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return calcul < 0.2 && calcul > -0.2;
|
||||
return calcul < 0.1 && calcul > -0.1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user