View Single Post
  #2   Spotlight this post!  
Unread 25-01-2011, 15:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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
Assuming your code doesn't have the typographical errors you showed us, and assuming your gyro is correctly mounted and wired and initialized, adding the GetAngle() call to the mecanum drive function should give you field-centric control. No matter which way the robot is facing at any given time, telling it to move "forward" will make it go in the direction it was facing when it was turned on.
Reply With Quote