debug de jeudi

This commit is contained in:
samuel desharnais
2026-03-28 09:16:33 -04:00
parent 57fa3597e2
commit 79568a58b9
8 changed files with 33 additions and 95 deletions

View File

@@ -61,12 +61,12 @@ public class Limelighter extends Command {
boty = BotPose[0];
angle = drivetrain.getPigeon2().getYaw().getValueAsDouble();
if(angle >180){
angle =- 360;
angle -= 360;
}
calcul = limelight3g.Calcule(botx, 4, boty, 4.6, angle) / 5;
calcul = limelight3g.Calcule(botx, 4, boty, 4.6, angle) / 10;
drivetrain.setControl(
drive.withVelocityX(0).withVelocityY(0).withRotationalRate(calcul));
System.out.println(calcul);
System.out.println(angle);
if (calcul < 0.2 && calcul > -0.2) {
drivetrain.setControl(drive.withRotationalRate(0));
}