mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11: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:
@@ -25,7 +25,3 @@ bool MockMotorController::GetInverted() const {
|
||||
void MockMotorController::Disable() {
|
||||
m_speed = 0;
|
||||
}
|
||||
|
||||
void MockMotorController::StopMotor() {
|
||||
Disable();
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ class MockMotorController : public MotorController {
|
||||
void SetInverted(bool isInverted) override;
|
||||
bool GetInverted() const override;
|
||||
void Disable() override;
|
||||
void StopMotor() override;
|
||||
|
||||
private:
|
||||
double m_speed = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user