mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
SpeedControllerGroup: Call set() from pidWrite()
This means pidWrite() now takes m_isInverted into account. Fixes #887.
This commit is contained in:
committed by
Peter Johnson
parent
54a0a7654a
commit
0e8ff4663d
@@ -42,11 +42,7 @@ void SpeedControllerGroup::StopMotor() {
|
||||
}
|
||||
}
|
||||
|
||||
void SpeedControllerGroup::PIDWrite(double output) {
|
||||
for (auto speedController : m_speedControllers) {
|
||||
speedController.get().PIDWrite(output);
|
||||
}
|
||||
}
|
||||
void SpeedControllerGroup::PIDWrite(double output) { Set(output); }
|
||||
|
||||
void SpeedControllerGroup::InitSendable(SendableBuilder& builder) {
|
||||
builder.SetSmartDashboardType("Speed Controller");
|
||||
|
||||
Reference in New Issue
Block a user