[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

@@ -10,4 +10,3 @@ classes:
SetInverted:
GetInverted:
Disable:
StopMotor:

View File

@@ -39,5 +39,4 @@ classes:
SetInverted:
GetInverted:
Disable:
StopMotor:
InitSendable:

View File

@@ -48,12 +48,6 @@ void PyMotorControllerGroup::Disable() {
}
}
void PyMotorControllerGroup::StopMotor() {
for (auto motorController : m_motorControllers) {
motorController->StopMotor();
}
}
void PyMotorControllerGroup::InitSendable(wpi::util::SendableBuilder& builder) {
builder.SetSmartDashboardType("Motor Controller");
builder.SetActuator(true);

View File

@@ -32,7 +32,6 @@ class PyMotorControllerGroup : public wpi::util::Sendable,
void SetInverted(bool isInverted) override;
bool GetInverted() const override;
void Disable() override;
void StopMotor() override;
void InitSendable(wpi::util::SendableBuilder& builder) override;