Thread: Mecanum-Code
View Single Post
  #4   Spotlight this post!  
Unread 28-01-2014, 15:42
FRC TEAM 4085 FRC TEAM 4085 is offline
Registered User
AKA: Warren
FRC #4085 (technical difficulties)
Team Role: Scout
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Reynoldsburg Ohio
Posts: 3
FRC TEAM 4085 is an unknown quantity at this point
Re: Mecanum-Code

Quote:
Originally Posted by nyaculak View Post
Like Joe Ross said, your code only evaluates the value of the axes once, before teleoperated mode is ever started. To fix this, you need to retrieve the values of the axes you wish to use at the beginning of the teleop loop.

Also, for a mecanum drive robot, you want to call a mecanum drive function instead of the tankDrive() function. The RobotDrive defines two mecanum drive functions: mecanumDrive_Cartesian and mecanumDrive_Polar. Take a look at the Javadoc to learn how to implement them.
We added a fail safe system for if any reason the mecanum code doesn't work or the driver doesn't feel safe using the mecanum code we added tank drive which is a drive style our team feels very comfortable with while the mecanum code is new.
Reply With Quote