mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
DifferentialDrive: Invert right motor in LiveWindow. (#867)
This commit is contained in:
@@ -263,6 +263,6 @@ void DifferentialDrive::InitSendable(SendableBuilder& builder) {
|
||||
[=]() { return m_leftMotor.Get(); },
|
||||
[=](double value) { m_leftMotor.Set(value); });
|
||||
builder.AddDoubleProperty("Right Motor Speed",
|
||||
[=]() { return m_rightMotor.Get(); },
|
||||
[=](double value) { m_rightMotor.Set(value); });
|
||||
[=]() { return -m_rightMotor.Get(); },
|
||||
[=](double value) { m_rightMotor.Set(-value); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user