[examples] Update RomiReference to match motor directions (#3036)

Flip the TeleopArcadeDrive axis directions so that positive
values for x-axis speed result in the Romi driving forward (in the
direction of the Raspberry Pi USB ports).
This commit is contained in:
Zhiquan Yeo
2021-01-02 20:21:07 -05:00
committed by GitHub
parent f945462bab
commit d73cf64e54
2 changed files with 3 additions and 3 deletions

View File

@@ -92,6 +92,6 @@ public class RobotContainer {
*/
public Command getArcadeDriveCommand() {
return new ArcadeDrive(
m_drivetrain, () -> m_controller.getRawAxis(1), () -> -m_controller.getRawAxis(2));
m_drivetrain, () -> -m_controller.getRawAxis(1), () -> m_controller.getRawAxis(2));
}
}