Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   The Hardest Drive System To Program: (http://www.chiefdelphi.com/forums/showthread.php?t=94051)

Ether 04-04-2011 09:40

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by aaronweiss74 (Post 1048900)
I'm going to have to agree with all those who said that programming the drive system really isn't difficult at all. The most common systems are ready-made and quite frankly, there's absolutely no good reason other than elitist-ness to rewrite them. If you take programming in FIRST as an opportunity to prepare for programming in the real world, you'll have to realize that you get paid to produce new work, not rewrite already working code. As the old saying goes, don't fix what isn't broken. As for an actual answer, it has to be something complex to the point where you require advanced math...

Welcome to CD. Your enthusiasm and self-confidence are admirable, but as you get older and gain experience you will find that those absolute statements have many shades of gray.

A software problem need not involve advanced math to be complex. It may involve just algebra, geometry, and trig... but require considerable skill and experience to set the problem up properly.

In the real world, many software people get paid to rewrite already working code, be it to make it more efficient, make it more maintainable, make it more re-usable, make it conform to a new customer-required (or company-required) coding standard or language, take advantage of the unique characteristics of a new processor, avoid royalties, or migrate away from a legacy language.

Rewriting library code just to be "elitist" is immature and counterproductive. But assuming that learning is the motivation, at least one good reason to re-write library code is to learn. Some people learn best by doing. Understanding and analyzing an already-solved problem and designing and coding a working solution is one way to do this. Comparing your solution to someone else's can be rewarding and provide deeper insight. It goes without saying that this learning process should not be allowed to jeopardize the project.



ttldomination 04-04-2011 10:43

Re: The Hardest Drive System To Program:
 
Reading through this thread, I do have a question.

Assuming a robot has a crab drive, how would turning of the actually base fair? I would think that since turning would pretty much be comparable to a 4WD, it wouldn't so hot, but my knowledge of swerve/crab isn't whole.

Can anyone confirm this?

Garret 04-04-2011 15:26

Re: The Hardest Drive System To Program:
 
The way our swerve drive turns would be to turn the wheels in so that it actually doesn't skid. I know 1717 does this and it is very effective as far as I can tell.
If they didn't turn inward it would be rather difficult to turn I think.

Ether 04-04-2011 15:42

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by Garret (Post 1049263)
The way our swerve drive turns would be to turn the wheels in so that it actually doesn't skid.

I think he was asking specifically about crab drive (which is a subset of swerve), where all four wheels are driven and steered in the same direction.

Quote:

If they didn't turn inward it would be rather difficult to turn I think.
With high-traction wheels and a long wheelbase, yes.



davidthefat 04-04-2011 15:48

Re: The Hardest Drive System To Program:
 
Now, this might sound ridiculous, but has anyone thought of putting a "turret". So the Drive train would be a separate system than the turret like a tank.

Ether 04-04-2011 15:50

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by davidthefat (Post 1049274)
Now, this might sound ridiculous, but has anyone thought of putting a "turret". So the Drive train would be a separate system than the turret like a tank.

I believe this has been done.



apalrd 04-04-2011 15:51

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by davidthefat (Post 1049274)
Now, this might sound ridiculous, but has anyone thought of putting a "turret". So the Drive train would be a separate system than the turret like a tank.

This Robot comes to mind. So do a few others by team 118.

Joe Ross 04-04-2011 15:53

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by davidthefat (Post 1049274)
Now, this might sound ridiculous, but has anyone thought of putting a "turret". So the Drive train would be a separate system than the turret like a tank.

http://www.youtube.com/watch?v=CAJBC-DDL9w

davidthefat 04-04-2011 15:55

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by apalrd (Post 1049277)
This Robot comes to mind. So do a few others by team 118.

Quote:

Originally Posted by Joe Ross (Post 1049279)

Quote:

Originally Posted by Ether (Post 1049276)
I believe this has been done.


:eek: How stable was it? Are you aware if it broke down often or at all?

Alan Anderson 04-04-2011 16:11

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by Garret (Post 1049263)
If they didn't turn inward it would be rather difficult to turn I think.

Quote:

Originally Posted by Ether (Post 1049269)
With high-traction wheels and a long wheelbase, yes.

If you crab a long/narrow wheelbase sideways, it becomes a short/wide wheelbase.

Ether 04-04-2011 16:26

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by Alan Anderson (Post 1049291)
If you crab a long/narrow wheelbase sideways, it becomes a short/wide wheelbase.

Of course.

If the vehicle is mechanically limited to crab operation that may be your only option.

If not, it could be argued that it would be easier overall to replace crab software with something more flexible.



buildmaster5000 04-04-2011 17:28

Re: The Hardest Drive System To Program:
 
1 Attachment(s)
Short answer: Swerve drive with 4 independently controlled wheels.

Long answer: Swerve drive with 4 independently controlled wheels that have a limited range of motion. This forces the programmer to limit how the wheels will be pointed as to not tear out the wires leading to the motor powering the wheel (CIM motor in most cases.) It also requires the wheels taking a specific path in order to do this. This path is not necessarily the shortest and most direct, but it should be no more than 180 degrees of travel. An example of this is the attached picture, a portion of team 2421's creation this year. If someone wants to see the code for it, it is available here. Feel free to PM me with any questions you may have

davidthefat 04-04-2011 17:47

Re: The Hardest Drive System To Program:
 
From what I can see, you only need 90 degrees of rotation. Personally, from the context of this competition, having 4 independently rotated wheels are too much weight. The swerve system it self is quite heavy, adding unnecessary weight should be avoided. I really see no advantage with 4 independent wheels compared to the "crab" drive. At least the negatives far outweigh the positives.

bladetech932 05-04-2011 00:24

Re: The Hardest Drive System To Program:
 
I agree with david on this one. While i do see the merit in four independently controlled swerve modules, i think the weight and the limited motors outweigh the benefits of the control. For the case of FRC i think that the crab is more than sufficient.

AdamHeard 05-04-2011 00:38

Re: The Hardest Drive System To Program:
 
Quote:

Originally Posted by davidthefat (Post 1049355)
From what I can see, you only need 90 degrees of rotation. Personally, from the context of this competition, having 4 independently rotated wheels are too much weight. The swerve system it self is quite heavy, adding unnecessary weight should be avoided. I really see no advantage with 4 independent wheels compared to the "crab" drive. At least the negatives far outweigh the positives.

I disagree.

Many teams are capable of making such a drive lighter than most teams invest in traditional drivetrains. They then achieve full omnidirectional motion without the drawbacks of a robot sitting on rollers.


All times are GMT -5. The time now is 02:30.

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