View Single Post
  #2   Spotlight this post!  
Unread 04-02-2015, 21:20
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Mecanum Single Joystick Control not working

Quote:
Originally Posted by Ether View Post
Would you please post a link to where you've been reading that?

I don't have access to LabVIEW to inspect its code, but here's the inverse kinematics code taken straight from 2015 WPILib RobotDrive.Java:

Code:

wheelSpeeds[MotorType.kFrontLeft_val] = xIn + yIn + rotation;
   
wheelSpeeds[MotorType.kFrontRight_val] = -xIn + yIn - rotation;
      
wheelSpeeds[MotorType.kRearLeft_val] = -xIn + yIn + rotation;
      
wheelSpeeds[MotorType.kRearRight_val] = xIn + yIn - rotation;
I'm not a Java guru, but it looks correct to me.


I'm not quite sure how credible this is, but it sure did help me.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote