mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user