Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Understanding Mecanum Drive (http://www.chiefdelphi.com/forums/showthread.php?t=124219)

Matt_4505 06-01-2014 22:40

Understanding Mecanum Drive
 
Hello Everyone,

I have a technical question regarding programming a mecanum drivetrain. Looking at wpilib one would setup the mecanumDrive_Polar method by using a joystick's Y axis for both the magnitude and direction parameter. How does the method determine if the joystick is moving right or left if it's only sampling the Y axis?

Thank you!

Joe Ross 06-01-2014 23:30

Re: Understanding Mecanum Drive
 
Quote:

Originally Posted by Matt_4505 (Post 1322878)
I have a technical question regarding programming a mecanum drivetrain. Looking at wpilib one would setup the mecanumDrive_Polar method by using a joystick's Y axis for both the magnitude and direction parameter. How does the method determine if the joystick is moving right or left if it's only sampling the Y axis?

That looks like an error to me. I think the second getY should be getX.

BradAMiller 07-01-2014 02:46

Re: Understanding Mecanum Drive
 
Thanks Matt and Joe.

The example has been updated.

Brad


All times are GMT -5. The time now is 22:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi