Chief Delphi

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

aweso_meme 11-10-2014 10:32

8 Motor Mecanum
 
Hello all,

I'm trying to set up an 8 motor mecanum drive, and am wondering how to program this. I am currently using the mecanumDrive_cartesian() method, and am wondering if this code will work:
Code:

// Initialization code, 1 and 5 are the same wheel, 2 and 6 are the same wheel, etc
RobotDrive driveA = new RobotDrive(1,2,3,4);
RobotDrive driveB = new RobotDrive(5,6,7,8);

//Inside the Tele-Op method
driveA.mecanumDrive_Cartesian(Joysick.getX(), Joystick.getY(), Joystick.getTwist());
driveB.mecanumDrive_Cartesian(Joysick.getX(), Joystick.getY(), Joystick.getTwist());

Will this work?
Thanks all

z_beeblebrox 11-10-2014 10:46

Re: 8 Motor Mecanum
 
I'm not sure if this works, although I'd guess it would.

If it doesn't, the simple hardware solution is to use y-cables to connect one PWM output to two motor controllers.

cgmv123 11-10-2014 17:28

Re: 8 Motor Mecanum
 
Quote:

Originally Posted by z_beeblebrox (Post 1403856)
If it doesn't, the simple hardware solution is to use y-cables to connect one PWM output to two motor controllers.

This, this, a thousand times this. Don't make your code more complicated than it has to be. This also keeps your motors in sync no matter what you do with your code.


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

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