Invert when getting motor speed in SpeedControllerGroup (#886)

This commit is contained in:
Rohit Vighne
2018-01-11 22:16:42 -08:00
committed by Peter Johnson
parent 5513888457
commit 59f938b584
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ public class SpeedControllerGroup extends SendableBase implements SpeedControlle
@Override
public double get() {
if (m_speedControllers.length > 0) {
return m_speedControllers[0].get();
return m_speedControllers[0].get() * (m_isInverted ? -1 : 1);
}
return 0.0;
}