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

@@ -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;
}