修正可调背板 使默认位置为0(待测试)
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user