修复自动突然终止 电机速度参数仍存在的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
+7 -1
View File
@@ -8,6 +8,7 @@ import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import frc.robot.subsystems.ShooterSubsystem;
public class Robot extends TimedRobot {
private Command m_autonomousCommand;
@@ -26,7 +27,12 @@ public class Robot extends TimedRobot {
}
@Override
public void disabledInit() {}
public void disabledInit() {
System.out.println("Robot disabledInit called");
m_robotContainer.shooterSubsystem.stopAll();
m_robotContainer.climberSubsystem.stopAll();
m_robotContainer.IntakerSubsystem.stopAll();
}
@Override
public void disabledPeriodic() {}