mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[examples] Ensure right side motors are inverted (#3836)
Fixes #3827 Adds MotorController inversion for right side, removes inversion in setVoltage methods. Also fixes various XboxController negations (was inconsistent throughout examples).
This commit is contained in:
@@ -27,8 +27,8 @@ RobotContainer::RobotContainer() {
|
||||
|
||||
// Set up default drive command
|
||||
m_drive.SetDefaultCommand(DefaultDrive(
|
||||
&m_drive, [this] { return m_driverController.GetLeftY(); },
|
||||
[this] { return m_driverController.GetRightX(); }));
|
||||
&m_drive, [this] { return -m_driverController.GetLeftY(); },
|
||||
[this] { return -m_driverController.GetRightX(); }));
|
||||
}
|
||||
|
||||
void RobotContainer::ConfigureButtonBindings() {
|
||||
|
||||
Reference in New Issue
Block a user