Go to Post I'm a drive team coach, they don't eat lunch during competition. - Rick [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 07-02-2007, 19:48
herbboy's Avatar
herbboy herbboy is offline
Camera/Autonomous Programmer
AKA: Sid
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Merrimack
Posts: 3
herbboy is an unknown quantity at this point
Re: I have a quiestion about a distance

simple get the coordinate for mid (x,y) then get coordinates for corner(x1,y1)
now use the distance formual --

sqareroot( (x-x1)^2 + (y-y1)^2) I think
  #2   Spotlight this post!  
Unread 07-02-2007, 20:28
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: I have a quiestion about a distance

Quote:
Originally Posted by herbboy View Post
simple get the coordinate for mid (x,y) then get coordinates for corner(x1,y1)
now use the distance formual --

sqareroot( (x-x1)^2 + (y-y1)^2) I think
I believe that the centroid values available from the camera are "center of mass" values and not the exact center of the bounding box. With one light being tracked, those are accurate enough, but when tracking two lights, the centroid values will stray towards the light that is closest to you.
__________________
  #3   Spotlight this post!  
Unread 08-02-2007, 15:16
herbboy's Avatar
herbboy herbboy is offline
Camera/Autonomous Programmer
AKA: Sid
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Merrimack
Posts: 3
herbboy is an unknown quantity at this point
Re: I have a quiestion about a distance

O yea I forgot about this how foolish of me. Hmm Well if the twoo or more target are of same area than you can use the pixels but the same problem of distance occurs. Maybe if you can caculate the distance to one off the target or use the VW function to get 1 target you could do it. Using VW gives can *theoretically* get you down to one target I belive. Am I right or dead wrong?
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
I have a quistion about stopping the autonomous mode... razer Programming 25 11-01-2007 15:43
What we have learned about Batteries Viper37 Electrical 11 20-12-2006 12:17
What have we learned about design? Rick TYler Regional Competitions 0 04-03-2005 21:08
do you have a question about girls? angier314 Chit-Chat 53 20-02-2003 12:24
I have yet to forget about the bumpersticker Robby O Chit-Chat 15 25-10-2001 22:10


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

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