test d'april tag pas concluant
This commit is contained in:
@@ -48,12 +48,12 @@ public class AprilTag3 extends Command {
|
||||
@Override
|
||||
public void execute() {
|
||||
double a = limelight3.getTx();
|
||||
double b = limelight3.getTA()*100/Math.cos(90-limelight3.getTx());
|
||||
double b = (limelight3.getTA()*100) / (Math.cos(90-limelight3.getTx()));
|
||||
if(limelight3.getV() == true){
|
||||
drivetrain.setControl(drive.
|
||||
withRotationalRate(a/10).
|
||||
withVelocityX(0).
|
||||
withVelocityY( b/30));
|
||||
withVelocityY( b/30));
|
||||
System.out.println(b/10);
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user