|
Re: Mecanum Single Joystick Control not working
Quote:
Originally Posted by Ether
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)
|