Go to Post We don't build robots because it's easy, we do it because it's hard. Maybe we can work on giving new members a warmer and gentler welcome, because it's hard ;). - Winged Globe [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 04-12-2004, 00:35
generalbrando's Avatar
generalbrando generalbrando is offline
Build, Break, Repeat
AKA: Brandon Mensing
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Nov 2002
Rookie Year: 2001
Location: Boston, MA
Posts: 366
generalbrando is a splendid one to beholdgeneralbrando is a splendid one to beholdgeneralbrando is a splendid one to beholdgeneralbrando is a splendid one to beholdgeneralbrando is a splendid one to beholdgeneralbrando is a splendid one to beholdgeneralbrando is a splendid one to beholdgeneralbrando is a splendid one to behold
Send a message via AIM to generalbrando
Re: A Simple Improvement to Driving

It's true that you're going to have half the turning speed and that you'd end up arching when pushing one stick.

That code mentioned above is correct I believe - my version is a bit more cluttered but hopefully either gets the idea across.

Anyway, in defense of the argument that it'll turn too slow, you're going to have to agree that we can't generalize. Slower turning on 246's 2004 bot is better because of the balance of the weight to the non-drive side means that it has a heavy tail - it's tough to control at times. And yet, it still allows for quick enough maneuvering in this case. Different robots will benefit from different programming.

This isn't something for every 'bot, but if a team wanted this effect but didn't want to lose their turning speed, you could include another piece of code downstream of this. It would check to see (for example) if the sticks were each pushed in opposite directions past the 3/4 (or half...you'd have to tweak it probably) point. For those familiar with code, you'd check if one stick was under 64 while the other was above 192 or vise versa. If it is, then you'd tell it to send the values of the ports directly to the pwm outs (as usual).

But yes, it's valid to say that it would be a bad idea for some skilled drivers who are used to that absolute non-interpretive control, not to mention the turning being potentially a problem.
__________________
Lead Mentor of Team #246, Boston University Academy and Boston University, Overclocked
www.burobotics.org


Last edited by generalbrando : 04-12-2004 at 00:39.
  #2   Spotlight this post!  
Unread 04-12-2004, 11:53
Matt Attallah's Avatar
Matt Attallah Matt Attallah is offline
Now at sub 14's in a 5000lb vehicle
AKA: Maher Attallah
FRC #0005 (Robocards)
Team Role: Alumni
 
Join Date: Sep 2001
Rookie Year: 2000
Location: Detroit area, Michigan
Posts: 1,660
Matt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond repute
Send a message via AIM to Matt Attallah Send a message via MSN to Matt Attallah Send a message via Yahoo to Matt Attallah
Re: A Simple Improvement to Driving

Team 5 use to used tank drive for the 1998, 99, 00, and 01 years. Rember - when you take the motors and flip them opposite of eachother (So when moving foward - one motor thinks it's running in reverse) these motors seem to have a (?)Reverse bias? It's in the way the brushes think.

We just took care of that in programming. Just take away from the more powerful side that kept pushing the robot to be crooked...
__________________
That rug really tied the room together...
  #3   Spotlight this post!  
Unread 30-12-2004, 19:41
krhs_programmer's Avatar
krhs_programmer krhs_programmer is offline
Programmer, Engineer, exDriver
#1247 (R.O.K.S.)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Sutton, NH
Posts: 23
krhs_programmer is an unknown quantity at this point
Re: A Simple Improvement to Driving

My teams first robot used tank drive but with two drive wheels and two spining casters which made it very unstable at times and like you guys have said, it doesn't like to go in straight lines. Although this could be do inpart to the fact that one of the motors was slightly weaker that the other, but still that idea should work for us. After read the thread and seeing the drawbacks to it i came up with this idea:
If you were to designate one of the buttons on your joystick as a toggle switch and used it to toggle that function on and off depending on whether you want to be accurate or quick when driving.

first set up code so when you push the button it switches a variable between 2 values. (you'll have to do this on your own because i don't know how. sorry )
Then just use if statements:

if ( toggle == 1 ) /* toggle = var. controlled by button */
{
pwm01=(p1_y+((p1_y+p2_y)/2)/2);
pwm02=(p2_y+((p1_y+p2_y)/2)/2);
}

else
if ( toggle == 0 )
{
pwm01 = /* what ever your normal code is */ ;
pwm02 = /* what ever your normal code is */ ;
}

in theory that should work if you wanted to do that. thats what we did for our compressor last year to override the pressure sensor to build enough pressure to do the pull up on the bar.
  #4   Spotlight this post!  
Unread 30-12-2004, 23:42
Jeff K.'s Avatar
Jeff K. Jeff K. is offline
Hmm..now what?
FRC #1138 (Eagle Engineering)
Team Role: Alumni
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Chatsworth, California
Posts: 706
Jeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond repute
Send a message via AIM to Jeff K. Send a message via MSN to Jeff K.
Re: A Simple Improvement to Driving

Quote:
Originally Posted by Matt Attallah
Team 5 use to used tank drive for the 1998, 99, 00, and 01 years. Rember - when you take the motors and flip them opposite of eachother (So when moving foward - one motor thinks it's running in reverse) these motors seem to have a (?)Reverse bias? It's in the way the brushes think.

That's because they're drill motors. The drill motor gear box turns one way faster than the other. One way you can fix that is by not having one drive train mirror the other, but actually build it, so that it looks exactly like the other side. Example- Our drivetrain is in an L shape, what we have to do is make it into an upside down 'L' Shape, so that the motor is in a different position, not right next to the other one. It should sorta look lik a demented 'H' right next to each other. That should fix your problem, that is if you're using drill motors. If you're using another kind of motor, then I don't know.

Last edited by Jeff K. : 30-12-2004 at 23:45.
  #5   Spotlight this post!  
Unread 31-12-2004, 00:37
greencactus3 greencactus3 is offline
occra 23.
AKA: ryo
None #1481
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2006
Location: North Farmington, MI
Posts: 1,523
greencactus3 is a name known to allgreencactus3 is a name known to allgreencactus3 is a name known to allgreencactus3 is a name known to allgreencactus3 is a name known to allgreencactus3 is a name known to all
Send a message via AIM to greencactus3 Send a message via MSN to greencactus3
Re: A Simple Improvement to Driving

Quote:
Originally Posted by Stonefan5271138
That's because they're drill motors. The drill motor gear box turns one way faster than the other. One way you can fix that is by not having one drive train mirror the other, but actually build it, so that it looks exactly like the other side. Example- Our drivetrain is in an L shape, what we have to do is make it into an upside down 'L' Shape, so that the motor is in a different position, not right next to the other one. It should sorta look lik a demented 'H' right next to each other. That should fix your problem, that is if you're using drill motors. If you're using another kind of motor, then I don't know.
one thing. maybe you just phrased it confusingly, but the gearboxes do not turn anything faster in one direction than the other, it is as Matt Attallah says. the brushes are timed advanced in one direction. which means the brushes are not centered from the permanent magnets
  #6   Spotlight this post!  
Unread 31-12-2004, 03:17
Jeff K.'s Avatar
Jeff K. Jeff K. is offline
Hmm..now what?
FRC #1138 (Eagle Engineering)
Team Role: Alumni
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Chatsworth, California
Posts: 706
Jeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond repute
Send a message via AIM to Jeff K. Send a message via MSN to Jeff K.
Re: A Simple Improvement to Driving

Oh, my bad, sorry, I thought it was in the gearboxes.
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
A Simple note about life dddriveman Chit-Chat 14 13-05-2004 20:33
Simple things you can do to make your bot/team perform better KenWittlief General Forum 21 01-04-2004 15:11
Simple Autonomous Mode Example deltacoder1020 Programming 5 08-03-2004 20:22
In reference to the driving of Team 25 Goober65 General Forum 24 14-04-2003 23:09
Who's robots are driving already? Anton Abaya General Forum 67 16-02-2002 00:07


All times are GMT -5. The time now is 09:04.

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