修正可调背板 使默认位置为0(待测试)

This commit is contained in:
OnDYCLaptop
2026-03-09 13:08:13 +08:00
parent fe72a45c4b
commit 8b70832978
@@ -41,6 +41,13 @@ public class ShooterControls {
shooterSubsystem.stopMotors(); shooterSubsystem.stopMotors();
break; break;
case AllTelop: case AllTelop:
shooterSubsystem.setBackboardPosition(0);
if(shooterSubsystem.isBackboardAtTarget()){
shooterSubsystem.backboardMotor.set(0);
}else{
shooterSubsystem.outputBackboard();
}
break;
case PassingBall: case PassingBall:
var xP = shooterSubsystem.getDistanceToPassball(); var xP = shooterSubsystem.getDistanceToPassball();
xP = Math.max(1.2, Math.min(4.5, xP)); xP = Math.max(1.2, Math.min(4.5, xP));