C++ .ArcadeDrive() issue

Hey CD our robot is using two motors to power the AndyMark chassis, and we’re having an issue with the left and right turning inverted. The code as it sits right now is

void OperatorControl()
{
myRobot.SetSafetyEnabled(true);
while (IsOperatorControl() && IsEnabled())
{
myRobot.ArcadeDrive(stick1);
Wait (0.005);
}
}

You could either change the motor assignments in the myRobot object when you create it, or call myRobot.ArcadeDrive with separate arguments for forwards/backwards and turning. You can get values for these arguments from stick1.

If left/right is reversed, you probably have the left motor being controlled as the right one and vice versa. If forward/backward works as you expect, you probably also have the motors’ “invert” state wrong too. Simply swapping the motors will make everything work backwards, and then switching the “invert” on both of them ought to give you what you want.