Go to Post I hate that every year people turn this competition into whining rather than winning. - Akash Rastogi [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 13-04-2007, 12:08
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,534
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
Crab / Swerve drive joystick control scheme

I'm starting to develop some sketches of a crab drive for a future robot and I've been putting quite a bit of thought into the joystick configuration.

What's the most common setup you've seen? I've thought about a single joystick for translational control with a left/right joystick for rotational control.

What else have you seen at the competitions? I admit to not having paid much attention to what the experienced crab teams like Stangs do, so I'm hoping to get some ideas of how it's handled.

Suggestions on our team have ranged from a single joystick plus a dial control for orientation to twin joysticks that act in a way soas to mimic skid steering (to a degree).

So let's hear it - what's your control scheme?
  #2   Spotlight this post!  
Unread 13-04-2007, 17:16
devaaki's Avatar
devaaki devaaki is offline
Rookie Captain
AKA: Jeff Lou
FRC #2052 (KnightKrawler)
Team Role: Leadership
 
Join Date: Oct 2006
Rookie Year: 2007
Location: Irondale High School, MN
Posts: 10
devaaki is on a distinguished road
Re: Crab / Swerve drive joystick control scheme

2052 uses two sticks like the setup you mentioned, but with rotation on the forward/backward stick (like traditional arcade style skid steer) and strafe on the second stick. Its very intuitive to drive.
  #3   Spotlight this post!  
Unread 13-04-2007, 20:09
SgtMillhouse648's Avatar
SgtMillhouse648 SgtMillhouse648 is offline
Registered User
AKA: Malhon Godwin
FRC #0648 (QC Elite)
Team Role: Engineer
 
Join Date: Apr 2006
Rookie Year: 2005
Location: Davenport, IA
Posts: 153
SgtMillhouse648 has a spectacular aura aboutSgtMillhouse648 has a spectacular aura about
Send a message via MSN to SgtMillhouse648
Re: Crab / Swerve drive joystick control scheme

we use two joysticks to control the robot. One joystick controls one-third of the steering and speed, the other controls the other two thirds. If they are both used, 100% of the steering and speed is used. It works excellent because it allows for fine tuning without compromising function. We use translational control as the default, and once either of the triggers is used, the robot uses the rotational coordinated steering.
Malhon
__________________
2007-
Midwest Regional-
Regional Finalists with 1000 and 447
Rockwell Automation Inspiration in Control Award
Regional Woodie Flowers - Ed Wegscheid



  #4   Spotlight this post!  
Unread 13-04-2007, 21:34
Aren_Hill's Avatar
Aren_Hill Aren_Hill is offline
Build Nifty Things
no team
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Menlo Park CA
Posts: 1,218
Aren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond reputeAren_Hill has a reputation beyond repute
Re: Crab / Swerve drive joystick control scheme

this year we used 1 single ch flightstick for all of our swerve functions. the joystick heading was translated in to degrees 0-360 and the amplitude from the center is how much power to the wheels. but to activate the drive wheels you have to pull the trigger which then allows passive resistance to sit still. then with the button on top puts the robot in "tank mode" which changes the front of our robot to the long side and allows us to drive around in 1-stick tank mode.
__________________
A guy who likes robots.
1625->3928->148->1296->971 oh dear
  #5   Spotlight this post!  
Unread 15-04-2007, 21:59
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Crab / Swerve drive joystick control scheme

HOT (Team 67) had a cool setup 2 (?) years back. A single joystick for strafing and a racing wheel for turning.
  #6   Spotlight this post!  
Unread 15-04-2007, 22:30
Kelly Kelly is offline
Registered User
FRC #1418
 
Join Date: Jan 2007
Location: VA
Posts: 78
Kelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud of
Re: Crab / Swerve drive joystick control scheme

We sprung for the USB adapter so we could use an X-Box controller. We used one of the joysticks for translating and one for rotating. Driving like a video game and using fingers instead of wrists made it a lot more intuitive for the driver and gave him a lot more control.
  #7   Spotlight this post!  
Unread 16-04-2007, 13:03
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Crab / Swerve drive joystick control scheme

also, doas anyone have any sketches or crab drive designs? we're trying to develop one for next year.
__________________


  #8   Spotlight this post!  
Unread 16-04-2007, 13:16
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Crab / Swerve drive joystick control scheme

We need to hear from 71 they have most experiance I'm sure by far.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #9   Spotlight this post!  
Unread 16-04-2007, 13:20
BRosser314's Avatar
BRosser314 BRosser314 is offline
Post-A-Holic
AKA: Brandon Rosser
FRC #0469 (Las Guerrillas)
Team Role: Mentor
 
Join Date: Oct 2005
Rookie Year: 2002
Location: Flint, Michigan
Posts: 184
BRosser314 is a splendid one to beholdBRosser314 is a splendid one to beholdBRosser314 is a splendid one to beholdBRosser314 is a splendid one to beholdBRosser314 is a splendid one to beholdBRosser314 is a splendid one to beholdBRosser314 is a splendid one to behold
Send a message via AIM to BRosser314 Send a message via Yahoo to BRosser314
Re: Crab / Swerve drive joystick control scheme

469 had 2 joysticks, one for translation and one for the rotation, this setup was very simple, even for me which just drove the joysticks for about 3 minutes, and i thought it was simple
  #10   Spotlight this post!  
Unread 16-04-2007, 16:30
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: Crab / Swerve drive joystick control scheme

We used a single Logitech 3D joystick, connected via USB Chicklet. Translation was controlled by the X and Y axes, and rotation was controlled by the twist axis.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
  #11   Spotlight this post!  
Unread 16-04-2007, 16:33
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
Re: Crab / Swerve drive joystick control scheme

Quote:
Originally Posted by BRosser314 View Post
469 had 2 joysticks, one for translation and one for the rotation, this setup was very simple, even for me which just drove the joysticks for about 3 minutes, and i thought it was simple
To start with a concept: The robot is always rotating around an imaginary point, somewhere. Putting the point at infinity causes the robot to go straight.

To be a little more in depth about our controls, we used one stick to control the magnitude and direction of translations. The other one controlled the magnitude of rotations. We use both the X and Y axis on translation, and only the X axis for rotation.

Through a direct ratio of the 2 sticks (since the robot can only be outputting 100% power at any time, therefore it cannot be rotating at 100% and translating at 100% at the same time), the "imaginary point" was decided via software. The point was placed along a line, generated by the angle of the translation stick, and the exact point being dictated by the magnitude of the rotation stick. If the rotating stick stayed at 127, then the point is off at "infinity" (or actually 1618 feet or something, due to software limits on handling large numbers (we needed to square that number)). The further the rotation stick moved away from 127 the closer the "imaginary point" got to the robot.

Now, we draw an imaginary line from the "imaginary point" to each of the wheels, and draw another line perpendicular to that first line. The second line is where the wheels should be pointing to achieve the desired translation/rotation/combination of both.

For example, if the translation stick is at 127, and the rotation stick is at 255, the imaginary point would be placed in the center of the robot, and the wheels will be placed perpendicular the the line between that point and the wheel (via closed loop PID control). Since only the rotation stick is being used, 100% of the power output of the robot will be dedicated to rotations.

Now, lets say the rotation stick is at 127 and the translation stick is at (0,127) which is completely left. The point will be placed infinitely far in front of the robot (infinitely being 1618 feet) away from the robot, and put the wheels perpendicular to the line leading from the point the each of the wheels. Then, 100% of the drive power is devoted to translating (which is actually not true, it's devoted to rotating about a point VERY far away).

The advantage of this system is that it's capable of both translating, rotating, and both at the same time, with relative ease (well that's a lie... it's hard to program)

By the way, this is only possible for 4 independently steered wheels. I have no idea how to do it if you use linked. I guess the easiest way is to use 1 stick purely for translations, and one purely for rotations, skid stearing. With translations, it's easy, point in that direction, and move. With rotations, I would say point them all forward and turn... like a normal 4wd system.

If you want to know more feel free to PM me and i'll explain the system to the best of my knowledge.
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor

Last edited by Jimmy Cao : 16-04-2007 at 19:16.
  #12   Spotlight this post!  
Unread 16-04-2007, 17:53
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Crab / Swerve drive joystick control scheme

We have used the same basic crab control on all of our robots since 2002 (I wasn't on the team prior to that, so I don't know how those were controlled).

The X-axis of the left stick controls the crab angle. Since we use a closed loop system, when the joystick is centered, the wheels point straight ahead.

The right stick is where the interesting stuff happens. If we are trying to crab (based on the value of crab stick X), only the Y-axis of the right stick is used, and it becomes our throttle. When we aren't trying to crab, the right stick acts as a single stick differential drive.

This setup is similar to a FPS video game control except we don't attempt to strafe and rotate at the same time.
  #13   Spotlight this post!  
Unread 16-04-2007, 18:47
CraigHickman
 
Posts: n/a
Re: Crab / Swerve drive joystick control scheme

What we planned to do on a theoretical crab that we haven't built yet (we've only built one, and it was uncontrollable...) is have a single joystick with only the y axis enabled for throttle, and have a pot with a handle on an outstretched bar for pointing the wheels. The scoring mechanism would be on a turret, so translating as well as crab steering wouldn't really be necessary.
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
Simple Swerve/Crab Rob2713g Technical Discussion 4 20-03-2007 19:00
Swerve drive control system dpick1055 Programming 8 22-01-2007 19:06
Swerve/Crab Rob2713g Technical Discussion 5 12-11-2006 22:05
Control Scheme Drok00 Control System 5 19-01-2006 16:57
Swerve/crab drive and tank turning activemx Technical Discussion 9 23-02-2004 18:26


All times are GMT -5. The time now is 19:41.

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