Go to Post Honestly, I can't understand why anyone wouldn't want to be a mentor. The fools don't know what they are missing. - Steven Smith [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2011, 15:28
cheezburger's Avatar
cheezburger cheezburger is offline
Registered User
FRC #0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Mount Airy, MD
Posts: 61
cheezburger is an unknown quantity at this point
Holonomic Drive Program

My team is switching to Java this year and we want a holonomic drive system.

Not quite sure how to program it. When we tried to use the holonomicDrive method, Netbeans gave us a slew of errors, the most common of which was that

"holonomicDrive(float, float, float) is not public in edu.wpi.first.wpilibj.RobotDrive; cannot be accesed from outside package."

This is the code we have:

public void operatorControl() {
while (true && isOperatorControl() && isEnabled()) // loop until change
{
drive.holonomicDrive(leftStick.getDirectionDegrees (), leftStick.getMagnitude(), rightStick.getX(GenericHID.Hand.kRight));
Timer.delay(0.005);
}
}

I'm open to help in fixing holonomicDrive or to help in making a holonomic from scratch, as long as it works. The place I got the current code from said it was not tested code. I'd like code that has been known to work.
__________________
i can has cheezburger?
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2011, 15:38
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Holonomic Drive Program

I don't see RobotDrive.holonomicDrive in the 2011 JavaDoc. You could use one of the mecanumDrive methods, however - the code for open-loop control of a holonomic drive with 4 wheels on 45 degree angles is identical to the code you'd use for a mecanum setup.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2011, 15:44
cheezburger's Avatar
cheezburger cheezburger is offline
Registered User
FRC #0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Mount Airy, MD
Posts: 61
cheezburger is an unknown quantity at this point
Re: Holonomic Drive Program

Could you give me a link to that?
__________________
i can has cheezburger?
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2011, 16:13
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Holonomic Drive Program

http://www.wbrobotics.com/javadoc/in...w-summary.html

Look in edu.wpi.first.wpilibj.RobotDrive for the "mecanumDrive_XXX" methods.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2011, 16:44
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: Holonomic Drive Program

Its actually
drive.MecanumDrive_Polar(leftStick.getDirectionDeg rees (), leftStick.getMagnitude(), joystick.getTwist());
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2011, 07:24
cheezburger's Avatar
cheezburger cheezburger is offline
Registered User
FRC #0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Mount Airy, MD
Posts: 61
cheezburger is an unknown quantity at this point
Re: Holonomic Drive Program

thanks for all the advice, we ended up making our own drive without the provided methods

everything is working now.
__________________
i can has cheezburger?
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2011, 08:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Holonomic Drive Program

Quote:
Originally Posted by cheezburger View Post
we ended up making our own drive without the provided methods

everything is working now.
I'd be curious to see what you came up with. Are you open to sharing it?



Reply With Quote
Reply


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 00:40.

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