[wpilib] Remove MotorController::StopMotor() (#8483)

It does the same thing as Disable() in practice, and MotorSafety has its
own StopMotor() function.
This commit is contained in:
Tyler Veness
2025-12-17 21:18:47 -08:00
committed by GitHub
parent a38499dcd7
commit 0349524f80
12 changed files with 6 additions and 54 deletions

View File

@@ -71,10 +71,4 @@ public interface MotorController {
/** Disable the motor controller. */
void disable();
/**
* Stops motor movement. Motor can be moved again by calling set without having to re-enable the
* motor.
*/
void stopMotor();
}

View File

@@ -225,12 +225,7 @@ public abstract class PWMMotorController extends MotorSafety
@Override
public void stopMotor() {
// Don't use set(0) as that will feed the watch kitty
m_pwm.setPulseTimeMicroseconds(0);
for (var follower : m_followers) {
follower.stopMotor();
}
disable();
}
@Override