View Single Post
  #12   Spotlight this post!  
Unread 03-02-2007, 08:24
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Distance to travel once targetted?

Yes, the tan() function in <math.h> takes the degrees argument in radians, so be sure to perform the conversion as Kevin's software calculates the tilt angle in degrees.

The units for distance will be whatever units you specified the light height and camera height with. In the .pdf document above, the 116 is inches, so be sure you calculate h (the height of your camera off the floor) in inches, and then the result will be in inches.

Good luck,
Robinson

Last edited by gnirts : 03-02-2007 at 08:27.