I think that TankDrive(float leftDrive, float rightDrive) is used in the original program.
But would this work?
within the code, making two variables, one leftHalf and another rightHalf. Then continually assigning each to leftJoystick/2 and rightJoystick/2 respectively?
And then having an
Code:
else if (triggerPressed==1) {
myRobot->TankDrive(leftHalf, rightHalf);
}
after the if that determines whether to use arcade or tank driving?