Go to Post I like to divide checklists like this into "stuff I have to do before applying power" and "stuff I'll find faster by watching it fail". - EricVanWyk [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 11-10-2014, 10:32
aweso_meme aweso_meme is offline
Registered User
FRC #4687
 
Join Date: Feb 2014
Location: Minnesota
Posts: 20
aweso_meme is an unknown quantity at this point
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
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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