Quote:
Originally Posted by Ether
The code you posted commands only translation (fwd/rev & left/right), no rotation.
The topic of this thread is "help with mecanum drive code", so yes turning is part of mecanum drive code.
|
Ah. Then I should just add that by setting FL, RL, FR, RR to the same value will make the robot turn. Positive values turn the robot counterclockwise, negative values turn it clockwise (assuming the motors are hooked up correctly).
Very simple example use for turning:
Code:
boolean turnRightAtFullSpeed = true;
if(turnRightAtFullSpeed)
jaguarDrive(-1, -1, -1, -1);