[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

@@ -18,8 +18,8 @@ RobotContainer::RobotContainer() {
void RobotContainer::ConfigureButtonBindings() {
// Also set default commands here
m_drive.SetDefaultCommand(TeleopArcadeDrive(
&m_drive, [this] { return m_controller.GetRawAxis(1); },
[this] { return -m_controller.GetRawAxis(2); }));
&m_drive, [this] { return -m_controller.GetRawAxis(1); },
[this] { return m_controller.GetRawAxis(2); }));
// Example of how to use the onboard IO
m_onboardButtonA.WhenPressed(frc2::PrintCommand("Button A Pressed"))