View Single Post
  #8   Spotlight this post!  
Unread 15-02-2014, 18:11
zackd97 zackd97 is offline
Registered User
FRC #4102
 
Join Date: Feb 2013
Rookie Year: 2013
Location: New Mexico
Posts: 16
zackd97 is an unknown quantity at this point
Re: Mecanum wheel twist issues.

Right now the only portion of code that has anything to do with the driving looks like this:
Code:
myRobot.MecanumDrive_Cartesian(stick.GetX(), stick.GetY(), stick.GetZ());
stick being the joystick and myRobot being the robot drive.

The ports are initialized as so:
Code:
myRobot(1,2,3,4),
stick(1)
The wiring is as follows:
Front left motor- Port 1
Front right motor- Port 2
Back left motor- Port 3
Back right motor- Port 4

EDIT:
I forgot as a side note, the MecanumDrive_Cartesian calls for input from a gyro at the end. That has not been included yet as we are working on getting our gyro mounted and working now.

Last edited by zackd97 : 15-02-2014 at 18:19.
Reply With Quote