Go to Post ...remember, this is coming from someone that spent the better part of an afternoon playing with an omniwheel--not assembling, not disassembling, just playing. - Billfred [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 18-01-2003, 14:52
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Speed Reduction for Drill Motors

OK, this is probably posted somewhere here, but I can't think of where to look, or what it's even called.

Basically, I've been told that once again, the Drill Motors are faster in forward than in reverse. I remember I did something crazy with the EEPROM last year, and while it worked, it wasn't exactly efficient. So, I'm wondering if anyone knows how much faster (percentage wise) the Drill Motors are, and two, how I would make some sort of algorithm to reduce the output accordingly. I know it's possible, but I haven't had any experience with Min or Max, and I have no idea how to make "pretty" algorithms .

So far, I know that one side would need to be reduced at all times. Depending on which the robot is going (simple if/else statement). I just need to figure out what goes on the inside of that loop, and yeah, it's confusing me a bit . So, if anyone has the heart to help a poor confused programmer, please do .
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #2   Spotlight this post!  
Unread 18-01-2003, 17:43
n[ate]vw's Avatar
n[ate]vw n[ate]vw is offline
Registered User
#0933 (Adler Attack)
 
Join Date: Jan 2003
Location: Rockford, IL
Posts: 48
n[ate]vw is an unknown quantity at this point
Send a message via AIM to n[ate]vw
I don't know how much faster the motors are, but I have already made an algorithm for reining in some automatic control tests.
bb_man_pot was a pot (sending in the opposite of assumed input) that we used to control the percent of speed. You could replace this with a variable. To only affect positive speed, you could put this in an if statement.

p1_y=p1_y-127*(254-bb_man_pot)/255+127

Keep in mind that it might not be practical to limit your forward speed just so the forward/reverse speeds are equal.
__________________
Adler Attack #933 -- Trigos
  #3   Spotlight this post!  
Unread 18-01-2003, 17:56
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
well, that's sort of what i want (i think). and it wasn't to make forward and reverse speeds equal either. from what i've been told, one drill motor runs in reverse, one runs forward, no matter which way you're going. the way they're mounted, it's always like that (unless you mount them funny). so, unless you leave it to the driver, which i don't want to do, you have to reduce the motor output on the side going forward. that way, the robot goes straight, instead of curve (Because on skid-steering, when one side is faster, you turn). i think that algorithm should work, i'll play around with it tomorrow and see if it works.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #4   Spotlight this post!  
Unread 18-01-2003, 18:50
n[ate]vw's Avatar
n[ate]vw n[ate]vw is offline
Registered User
#0933 (Adler Attack)
 
Join Date: Jan 2003
Location: Rockford, IL
Posts: 48
n[ate]vw is an unknown quantity at this point
Send a message via AIM to n[ate]vw
Right...I hadn't remembered that one drive train was running the opposite direction on many robots. Our software last year just ignored that fact, as it did not affect driveability very much. It might matter for autonomous control. Now that I realize your/our problem, there may be better algorithms to deal with it. Actually, you could apply mine, sort of, to one half of each motors range. The way it seems to be is:

 ----0+++++
+++++0----


The motors extend further in their 'positive' range than their 'negative' range. So, when each motor is in it's 'positive' range, you apply my algorithm with the right replacement for (254-bb_man_pot). But one motor's 'positive' range is between 0 and 127 and the others' is between 127 and 254.
This might make the algorithm simpler because it would only have to deal with a 'positive' or 'negative' value. I'll play around with it and see what I get.
__________________
Adler Attack #933 -- Trigos
  #5   Spotlight this post!  
Unread 18-01-2003, 19:05
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
We ran into a similar problem last year. In order to compensate, I added a multiplier to whichever motor was running in "forward" of approx. 90%. If you want to see the code, it's in CogCode2k2, available at my website: http://www.robbayer.com/software.html.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #6   Spotlight this post!  
Unread 18-01-2003, 23:57
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
ok, yeah, this is exactly what i needed . we had an elaborate solution last year, but this is much better. thanks to both of you.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
"Automatic Transmission" Madison Technical Discussion 70 24-11-2003 09:03
Looking for practice motors & extra tape drive parts? archiver 2000 1 23-06-2002 22:54
Four motors at the same speed? archiver 2001 8 23-06-2002 22:51
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32
Drill Motors TF8 Motors 19 12-12-2001 13:13


All times are GMT -5. The time now is 12:56.

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