修复自动突然终止 电机速度参数仍存在的bug

This commit is contained in:
OnDYCLaptop
2026-03-11 01:13:40 +08:00
parent be328661c7
commit f66ea4a188
4 changed files with 20 additions and 1 deletions
@@ -126,6 +126,10 @@ public class ClimberSubsystem extends SubsystemBase {
autoClimbUsedInAuto = false;
}
public void stopAll() {
climberMotor.set(0);
}
@Override
public void periodic() {
climberTable.getEntry("velocityRps").setDouble(getVelocityRps());
@@ -106,4 +106,8 @@ public class IntakerSubsystem extends SubsystemBase{
public void setIntakerRotater(double rotaterspeed){
intakerotater.set(rotaterspeed);
}
public void stopAll() {
stopIntakerotater();
setIntakerGetterSpeed(0);
}
}
@@ -185,4 +185,9 @@ public class ShooterSubsystem extends SubsystemBase {
public double getDistanceToPassball(){
return NetworkTableInstance.getDefault().getTable("AutoControl").getEntry("distanceToPassball").getDouble(0.0);
}
public void stopAll() {
setFlywheelSpeedByRPS(0);
setConveyorSpeedByRPS(0);
backboardMotor.set(0);
}
}