Quote:
Originally Posted by jls667
I have another related question. I want to use the method myDrive.mecanumDrive.Polar(x,y,z) in my autonomous method. Please explain the three numbers x,y,z. What does each do to the robot?
|
RobotDrive#mecanumDrive_Polar() takes input in the form of
polar coordinates, as opposed to RobotDrive#mecanumDrive_Cartesian() which takes
Cartesian (Rectangular) coordinates. The three parameters for RobotDrive#mecanumDrive_Polar() are as follows:
Quote:
|
Originally Posted by FRC Javadocs
magnitude - The speed that the robot should drive in a given direction.
direction - The direction the robot should drive in degrees. The direction and magnitude are independent of the rotation rate.
rotation - The rate of rotation for the robot that is completely independent of the magnitude or direction. [-1.0..1.0]
|
You can find information like this in the
Javadocs in the sunspotfrcsdk directory.