Go to Post *be there or be triangle, circle, square - PVCpirate [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 22-02-2006, 15:12
Daru Daru is offline
Registered User
#0706
 
Join Date: Jan 2005
Location: Wisconsin
Posts: 42
Daru has a spectacular aura aboutDaru has a spectacular aura about
How'd you do it?

I've been working with the camera a bit throughout the season, it really perks my interest. None of the team wants it on there except me, so I am still pushing them to let me work on it.

How do you turn your robot to the light? We don't have a turret, so we need to turn the entire robot.

I've come up with two ideas:
1)you mount the camera so it can pivot on its own with the servos, then turn the robot until the camera is straight.
2) you mount the camera stationary (no servos), and turn the entire robot until you lock on.

We're only talking Pan here, not tilt.

Which do you think is the better idea?

The only way I can see to do it the first way, is to lock on, then move the robot a little, then lock on and move a little more until the camera is straight.

The second way, you move the entire robot in a search pattern which seems a tad 'dangerous' to me, especially with my lack of programming ability


On our robot, it would be a lot easier to mount the camera stationary (i've already got the spot picked out), but we would then need to move the robot itself in the search pattern. This would also make the tilt adjustment VERY easy, being a simple "run a motor until it lines up" to tilt our shoot angle. This is probably what I will end up doing if no one sees a problem in it

Looking forward to your opinions!

~Dave
team 706
  #2   Spotlight this post!  
Unread 22-02-2006, 15:17
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: How'd you do it?

We have the camera mounted stationary, and will use the relative position of the vision target in it's field of vision to aim the turret/launcher.
  #3   Spotlight this post!  
Unread 22-02-2006, 15:50
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: How'd you do it?

Number 1 is the best way to do it becuase your not going to get the accuracy you need with having your robot pivoting around all the time. Its easier and more usefull to use a pan assembly and mount that on the robot.
  #4   Spotlight this post!  
Unread 22-02-2006, 17:39
Daru Daru is offline
Registered User
#0706
 
Join Date: Jan 2005
Location: Wisconsin
Posts: 42
Daru has a spectacular aura aboutDaru has a spectacular aura about
Re: How'd you do it?

Perhaps, but then how would I quickly move the robot and camera at the same time to get the robot straight to the target?

The only way I can see to do this is to move a little, re-track, and repeat.
  #5   Spotlight this post!  
Unread 22-02-2006, 17:41
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: How'd you do it?

Just remember you are only allowed to work on software during the fix-it windows.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #6   Spotlight this post!  
Unread 22-02-2006, 17:43
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: How'd you do it?

Mount it stationary, especially since you arent going to use tilt. The camera is going to have the target in its field of view if you are facing anywhere near direction of the target. Just get the median x (mx) near the center of the field of view and fire. The camera should only be a fine ajustment so no search routine. In auto mode just drive to about where you need to be and have the camera turn the bot a little bit to line up. Same thing in operator mode. Use an LED to indicate Target Locked and maybe a button the driver can push to do the same fine adjustment as auto mode. Just my $.02 Good Luck!
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
  #7   Spotlight this post!  
Unread 22-02-2006, 18:48
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: How'd you do it?

Mine does it rather neatly, have the driver park it in range, then have him hit a button, if the robot sees the green light, it will auto adjust to the right angle, and then the driver can start shooting. It is great!
__________________
My Blog!
  #8   Spotlight this post!  
Unread 22-02-2006, 21:31
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: How'd you do it?

I have it so the camera is freely mounted, can do it's search routine, when the cam locks on, the driver can press a button and have the robot line up with the target, find the distance from the target, and adjust the speed of the launchers accordingly. It works pretty well!
__________________
www.sabrerobotics.com
  #9   Spotlight this post!  
Unread 22-02-2006, 21:34
Rick TYler Rick TYler is offline
A VEX GUy WIth A STicky SHift KEy
VRC #0010 (Exothermic Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Redmond, Washington
Posts: 2,000
Rick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond repute
Re: How'd you do it?

Quote:
Originally Posted by Denz
I have it so the camera is freely mounted, can do it's search routine, when the cam locks on, the driver can press a button and have the robot line up with the target, find the distance from the target, and adjust the speed of the launchers accordingly. It works pretty well!
This is exactly how our software team designed our shooting controls. Now if the mech team had only been able to finish it in time for testing before it went into the crate...
__________________
Exothermic Robotics Club, Venturing Crew 2036
VRC 10A, 10B, 10D, 10Q, 10V, 10X, 10Z, and 575
  #10   Spotlight this post!  
Unread 22-02-2006, 21:46
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: How'd you do it?

Yes, the only problem is, when lining up the robot overshoots sometimes, and it kind of moves back and forth. This I am told is a PID problem, not sure what that means, and I'm a rookie programmer. Maybe if anyone has a solution, or can help me, I would really appreciate it . But yeah, I had to make many sacrifices because of the mech section. I had originally wanted a rotating turret, and angle adjusment on the turret, but none of these "luxuries" were avaiable, it still works really well though! I'm overall happy with it.
__________________
www.sabrerobotics.com
  #11   Spotlight this post!  
Unread 22-02-2006, 21:50
Rick TYler Rick TYler is offline
A VEX GUy WIth A STicky SHift KEy
VRC #0010 (Exothermic Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Redmond, Washington
Posts: 2,000
Rick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond repute
Re: How'd you do it?

Quote:
Originally Posted by Denz
Yes, the only problem is, when lining up the robot overshoots sometimes, and it kind of moves back and forth. This I am told is a PID problem, not sure what that means, and I'm a rookie programmer.
Oh, man, that hurts. The student head of software wrote a PID controller for the aiming process. Before that, ours hunted back and forth, too (tested on Wooden Thunder, we've never run the code on Top Gun. PID is hard -- it might take too long at this point, and if you don't have a really good mentor it might be impossible. John did test a PID-less version that worked pretty well, but it was S - L - O - W. Good luck.
__________________
Exothermic Robotics Club, Venturing Crew 2036
VRC 10A, 10B, 10D, 10Q, 10V, 10X, 10Z, and 575
  #12   Spotlight this post!  
Unread 22-02-2006, 21:52
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: How'd you do it?

If you have a PID loop already in place, increase the D term to dampen the oscillations.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #13   Spotlight this post!  
Unread 22-02-2006, 21:59
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: How'd you do it?

I don't even know what a PID loop is?

I had something like this:

if (p1_sw_trig == 1)
{
if ((((int)PAN_SERVO - 131)>= 1)||(((int)PAN_SERVO - 131)<=-1))
{
RIGHT_W = (127+(12*(((int)PAN_SERVO - 131))));
LEFT_W = (127-(12*(((int)PAN_SERVO - 131))));
}
else
{
RIGHT_W = 127;
LEFT_W = 127;
}


I'm thinking maybe 12 is the D value, however, when I decrease it too much, the robot wont turn when it gets to the point of being servo steps off.
__________________
www.sabrerobotics.com
  #14   Spotlight this post!  
Unread 22-02-2006, 22:15
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: How'd you do it?

Mine was a rather simple one, if we were more than 20 pixels off target, we spun the wheels fast, as we got to 10 pixels, we spun them slower, until we got to where we wanted. Within the 10 range we get the most accurate shots, so after that no more adjusting. Works great on carpet, not so great on just normal floor, as the carpet gives a lot more resistance.
__________________
My Blog!
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
Imagery Award winners: How'd you do it? Billfred General Forum 5 05-01-2005 18:05
Windows XP - In My Hands Nate Smith Chit-Chat 15 01-08-2001 10:24


All times are GMT -5. The time now is 23: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