View Single Post
  #2   Spotlight this post!  
Unread 11-12-2011, 19:32
Kovs's Avatar
Kovs Kovs is offline
Registered User
FRC #1259 (Paradigm Shift)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Pewaukee, Wisconsin
Posts: 19
Kovs will become famous soon enough
Re: Help with mecanum Drive!

Here is a java Doc for RobotDrive.
Specifically, I would recommend looking at:
  • The constructors
  • mecanumDrive_Cartesian(double x, double y, double rotation, double gyroAngle)
  • mecanumDrive_Polar(double magnitude, double direction, double rotation)
  • setInvertedMotor(RobotDrive.MotorType motor, boolean isInverted)
And here is one for the Joystick class
Specifically, I would look at
  • getX()
  • getY()

I haven't coded mecanum, but I think you need 4 motors assigned to your RobotDrive instead of 2.

Also, try using the "search" button up top Where I found this similar thread
Reply With Quote