Invert right side motors in MecanumDrive sendable (#933)

This aligns with the current behavior of DifferentialDrive
Fixes shuffleboard#404
This commit is contained in:
Sam Carlberg
2018-02-09 11:30:12 -05:00
committed by Peter Johnson
parent 67f9c9a5b3
commit 77d6c11743
2 changed files with 9 additions and 9 deletions

View File

@@ -189,11 +189,11 @@ public class MecanumDrive extends RobotDriveBase {
builder.setSmartDashboardType("MecanumDrive");
builder.addDoubleProperty("Front Left Motor Speed", m_frontLeftMotor::get,
m_frontLeftMotor::set);
builder.addDoubleProperty("Front Right Motor Speed", m_frontRightMotor::get,
m_frontRightMotor::set);
builder.addDoubleProperty("Front Right Motor Speed", () -> -m_frontRightMotor.get(),
value -> m_frontRightMotor.set(-value));
builder.addDoubleProperty("Rear Left Motor Speed", m_rearLeftMotor::get,
m_rearLeftMotor::set);
builder.addDoubleProperty("Rear Right Motor Speed", m_rearRightMotor::get,
m_rearRightMotor::set);
builder.addDoubleProperty("Rear Right Motor Speed", () -> -m_rearRightMotor.get(),
value -> m_rearRightMotor.set(-value));
}
}