mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Invert when getting motor speed in SpeedControllerGroup (#886)
This commit is contained in:
committed by
Peter Johnson
parent
5513888457
commit
59f938b584
@@ -19,7 +19,7 @@ void SpeedControllerGroup::Set(double speed) {
|
||||
|
||||
double SpeedControllerGroup::Get() const {
|
||||
if (!m_speedControllers.empty()) {
|
||||
return m_speedControllers.front().get().Get();
|
||||
return m_speedControllers.front().get().Get() * (m_isInverted ? -1 : 1);
|
||||
}
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user