Go to Post Understand that not only can you learn from other experienced engineers, but also mechanics, farmers, and craftsmen. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2009, 17:29
Megy698 Megy698 is offline
Registered User
AKA: Meghann Mingle
FRC #0698 (Division By Zero)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Chandler, AZ
Posts: 4
Megy698 is an unknown quantity at this point
Crab Drive Programming!!! HELP!!!!!!!!!

Hey, all you Robo Peoples..

My team (698) needs a bit of help programming our crab drive system on LabVIEW.

What we need help is how to program it to drive.



Any help we could get would be amazing!!

THANK YOU!!!!
  #2   Spotlight this post!  
Unread 12-02-2009, 17:42
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,511
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Crab Drive Programming!!! HELP!!!!!!!!!

Give us some more details as to what you have so far.

Are you saying that you built a crab, and have no code whatsoever (nor an idea of where to start?).

Or are you saying you have something started, but it's not working?

If you give us more details, we'll be able to help you probably.
  #3   Spotlight this post!  
Unread 12-02-2009, 17:47
Megy698 Megy698 is offline
Registered User
AKA: Meghann Mingle
FRC #0698 (Division By Zero)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Chandler, AZ
Posts: 4
Megy698 is an unknown quantity at this point
Re: Crab Drive Programming!!! HELP!!!!!!!!!

The crab programming has difficult, all of our programmers are rookies, and we have very little idea of where to start. Currently we are trying to code the poteniometers so that way they can line up with the values for the joysticks. Mainly, we need help on the crab drive.

We have very little programming for the crab drive. At this point, any advice or ideas would be appericated.
  #4   Spotlight this post!  
Unread 12-02-2009, 17:59
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,511
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Crab Drive Programming!!! HELP!!!!!!!!!

All right, can you describe the phsyical nature of it in entirety? or better yet, post a picture of the drive?

To fully explain it, we'll need to know how it's driven (motors in the modules? motors in seperate gearboxes? two wheels per motor? a single motor per wheel?) and how it's steered. We'll also need to know what sensors are where.
  #5   Spotlight this post!  
Unread 12-02-2009, 18:19
Megy698 Megy698 is offline
Registered User
AKA: Meghann Mingle
FRC #0698 (Division By Zero)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Chandler, AZ
Posts: 4
Megy698 is an unknown quantity at this point
Re: Crab Drive Programming!!! HELP!!!!!!!!!

Here are two pictures:



  #6   Spotlight this post!  
Unread 13-02-2009, 00:54
chmp09 chmp09 is offline
Registered User
AKA: Marc Pulte
FRC #1702 (Robocubs)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Troy, Michigan
Posts: 25
chmp09 is a jewel in the roughchmp09 is a jewel in the roughchmp09 is a jewel in the rough
Re: Crab Drive Programming!!! HELP!!!!!!!!!

I have not worked on a crab drive software before, but I can at least get you started with the pots. They need to be connected to analogue inputs (slot 1 by default). When programming, use the analogue input get voltage vi.
The voltage should correspond to what direction the pot is facing in. I recommend changing the values as they are imputed so that the read radians (multiply the value by 2PI/5), and the subtracting or adding so that all your values point to the same direction.
  #7   Spotlight this post!  
Unread 13-02-2009, 07:53
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,535
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Crab Drive Programming!!! HELP!!!!!!!!!

Ok.

First, write up how it should work.

1. Driver pushes joystick in a direction.
2. Robot takes that direction and changes it to an encoder value.
3. Robot turns wheels to that encoder value.

Next, start iterating that write up, adding details as you go.

1. Drive pushes joystick in a direction.
A. How will we measure that angle? (in Degrees)
B. How do we make sure that when the robot turns, we keep track of how much and keep it relative to the joystick? (Gyro)
2. Robot takes that direction and changes it to an encoder value.
3. Robot turns wheels to that encoder value.

Iterate again

1. Drive pushes joystick in a direction.
A. How will we measure that angle? (in Degrees)
i. We can use the labview .vi that changes rectangular coordinates
to polar to give us the angle and magnitude of the joystick.
B. How do we make sure that when the robot turns, we keep track of
how much and keep it relative to the joystick? (Gyro)
i. We'll need to somehow know the angle the robot starts relative to
the field, add that to the gyro, then keep that relative to the
joystick position
2. Robot takes that direction and changes it to an encoder value.
A. Angle / 360 * counts in one rotation of encoder
3. Robot turns wheels to that encoder value.
A. PID loop

This is how I teach our team to program. It's kind of a verbal flowchart, but it helps you think through the program very systematically. If, at any point, you start getting confused on what you need to do, then you probably haven't broken it down far enough.

I am going to warn you though - programming a crab drive is NOT a trivial task by any means. Probably at this point your easiest bet would be to remove one of the globe motors, connect both the front wheels by the same chain so they are turned together, and use one joystick for speed of the wheels, and the other to turn them left/right.

Last edited by Tom Line : 13-02-2009 at 07:56.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Help- 2 Motor 2 joystick Drive System OMAR_567 Programming 2 02-02-2008 14:08
Crab Drive HELP!!*** GGCO Technical Discussion 18 08-01-2008 19:27
Crab Drive nukelear1991 Programming 13 21-12-2007 18:02
HELP?!? with Omnidirectional/Crab Drive KMAC42 Technical Discussion 8 09-01-2007 21:34
Crab Drive Collin Fultz Technical Discussion 3 04-09-2002 16:35


All times are GMT -5. The time now is 21:49.

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