View Single Post
  #4   Spotlight this post!  
Unread 23-01-2009, 22:58
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Distance Calculation in Workbench

Well with just the camera you can tell what point the target is at, and you can tell how big it appears. You know how big it should be and how high it should be. So compare the two. I am looking over this as well and it will probably be pathagerian therom like this:

(height)^2 * X^2 = (actual distance)^2

where height is the height in the picture compared to the actual trailer height and actual distance is a comparison between the size of the target and the apparent size of the target.

I think this is correct, but I am still thinking it over and working on it myself, I hope this helps you.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote