View Single Post
  #8   Spotlight this post!  
Unread 05-02-2011, 16:48
mwalimu mwalimu is offline
Registered User
FRC #2085 (Robodogs)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2006
Location: US
Posts: 1
mwalimu is an unknown quantity at this point
Re: Gyro+Mecanum=?????

Quote:
Originally Posted by tomy View Post
How does the gyro help with driving carcesion mecanum drive, because we got our joysticks set up the way we want it then we hooked up the gyro and our robot didn't drive as well

all we did is this

Code:
mecanum_carcesion(float x, float y, float rotation, gyro.GetAngle();
yes we do have stuff for float x and y and rotation im just cant remeber them right now.

also should we just use the gyro for automomous mode?
We tried the same code and got similar results. The gyro angle part of the mecanumdrive_cartesian method seems to be broken. For example, putting a fixed angle of 90 degrees in for gyro->GetAngle() exhibits the following behavior:

forwards drives forwards
backwards drives backwards
spin right = strafe right
spin left = strafe left
strafe right = spin left
strafe left = spin right

Running it with the actual gyro output in there (and yes, the gyro shows the correct angle) exhibits very strange behavior like strafe left becomes turn left becomes strafe right while the joystick is pushed to the left and held there.
Reply With Quote