This commit is contained in:
OnDYCLaptop
2026-03-05 20:30:33 +08:00
4 changed files with 33 additions and 0 deletions
@@ -131,6 +131,14 @@ public class CommandSwerveDrivetrain extends TunerSwerveDrivetrain implements Su
);
}
<<<<<<< HEAD
=======
>>>>>>> a8acbce9dc302adc52e28e6f8c205677f50ea20e
private static final double kMaxVisionJumpMeters = 1.0;
private static final double kMaxOmegaDegPerSec = 360.0;
@@ -274,6 +282,10 @@ public class CommandSwerveDrivetrain extends TunerSwerveDrivetrain implements Su
return true;
}
<<<<<<< HEAD
=======
>>>>>>> a8acbce9dc302adc52e28e6f8c205677f50ea20e
public String driveToAprilTag(){
//Rotation2d targetHeading = getPose().getRotation();
if(!LimelightSupplier.isTargetVisible() ){
@@ -284,12 +296,18 @@ public class CommandSwerveDrivetrain extends TunerSwerveDrivetrain implements Su
for(int id : new int[]{16,32}){
if(id == trueId){
ifRightTag = true;
<<<<<<< HEAD
System.out.println("Target get.");
=======
>>>>>>> a8acbce9dc302adc52e28e6f8c205677f50ea20e
break;
}
}
if(!ifRightTag){
<<<<<<< HEAD
System.out.println("No Target.");
=======
>>>>>>> a8acbce9dc302adc52e28e6f8c205677f50ea20e
return "No Target";
}
double tx = LimelightSupplier.getTX() ;
@@ -84,6 +84,7 @@ public class LimelightSupplier extends SubsystemBase {
SmartDashboard.putString("LimelightPipeType", LimelightHelpers.getCurrentPipelineType(Constants.Limelight.LIMELIGHT_NAME_Intaker));
if (isTargetVisible()){
SmartDashboard.putString("LimelightTargetVisible", "YES");
<<<<<<< HEAD
// SmartDashboard.putNumber("LimelightTX", getTX());
// SmartDashboard.putNumber("LimelightTY", getTY());
SmartDashboard.putNumber("LimelightTA", getTA());
@@ -94,6 +95,9 @@ public class LimelightSupplier extends SubsystemBase {
// s += " ";
// }
// SmartDashboard.putString("LimeLightTP", s);
=======
SmartDashboard.putNumber("LimelightTA", getTA());
>>>>>>> a8acbce9dc302adc52e28e6f8c205677f50ea20e
SmartDashboard.putNumber("TargetRY", getTargetRotationY());
SmartDashboard.putNumber("TargetTX", getTX());
SmartDashboard.putNumber("TargetTZ", getTargetTZ());