mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user