View Single Post
  #1   Spotlight this post!  
Unread 16-01-2011, 15:05
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Has anyone gotten weird results from the mecanum drive?

I was working of porting the labview code to java before the kickoff.
At first, the movement was working fine
Code:
RobotDrive mecanumWheels = new RobotDrive(1,2,3,4);
Joystick joystick = new Joystick(1);
mecanumWheels.holonomicDrive(joystick.getMagnitude(), joystick.getDirectionDegrees(), joystick.getTwist());
However, after the reimage and update of java code,
Code:
RobotDrive mecanumWheels = new RobotDrive(1,2,3,4);
Joystick joystick = new Joystick(1);
mecanumWheels.mecanumDrive_Polar(joystick.getMagnitude(), joystick.getDirectionDegrees(), joystick.getTwist());
the bot doesn't strafe. Instead, the bot just goes forward, backward, and spins.
Is it a problem on my end, or on FRC's end?
__________________

Last edited by kinganu123 : 16-01-2011 at 20:28.
Reply With Quote