View Single Post
  #8   Spotlight this post!  
Unread 20-03-2007, 16:46
Red Mage's Avatar
Red Mage Red Mage is offline
Owner of Holistic Omniscience
FRC #1546 (Chaos Inc)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 35
Red Mage is on a distinguished road
Send a message via AIM to Red Mage
Re: How do YOU find the distance from the light?

I haven't used it yet, but I think the formula works out like this
We take a cross-section of the field
The camera is looking at a light
We know that angle, it's the tilt of the camera.
We also know the height of the light compared to the height of the camera, it's a constant.
The tan(camera_tilt_angle) = height_of_light / distance_from_rack

that's it.

I think...
__________________
Don't Blink. Blink and you're dead. Don't turn your back. Don't look away. And don't Blink. Good Luck.