debug de jeudi
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user