修复底盘自动瞄准trench和bmp

This commit is contained in:
OnDYCLaptop
2026-03-06 17:29:43 +08:00
parent 0536a3bcd4
commit 83c06bd0e6
4 changed files with 10 additions and 7 deletions
@@ -274,6 +274,10 @@ public class CommandSwerveDrivetrain extends TunerSwerveDrivetrain implements Su
return true;
}
public void setLimelightIntakerPipeline(int pipeline){
LimelightSupplier.setPipeline(pipeline);
}
public String driveToAprilTag(){
//Rotation2d targetHeading = getPose().getRotation();
if(!LimelightSupplier.isTargetVisible() ){
@@ -322,11 +326,6 @@ public class CommandSwerveDrivetrain extends TunerSwerveDrivetrain implements Su
}
positioningNetworkTable.getEntry("interestPointsClimb tx").setDouble(tx);
positioningNetworkTable.getEntry("interestPointsClimb targetTz").setDouble(targetTz);
positioningNetworkTable.getEntry("interestPointsClimb ry").setDouble(ry);
ChassisSpeeds scaled = new ChassisSpeeds(
tx, // X 不变
targetTz, // Y 不变
@@ -86,6 +86,6 @@ public class IntakerSubsystem extends SubsystemBase{
intakerotater.set(-0.05);
}
public void IntakerUpNonStop(){
intakerotater.set(0.2);
intakerotater.set(0.1);
}
}