View Single Post
  #3   Spotlight this post!  
Unread 05-02-2009, 15:03
intellec7's Avatar
intellec7 intellec7 is offline
108 programmer
AKA: Gustavo
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2006
Location: Hollywood, Florida
Posts: 65
intellec7 is on a distinguished road
Send a message via AIM to intellec7 Send a message via MSN to intellec7
Re: Trajectory Troubles ::LabView::

Instead of using the Tilt servo's angle as a direct input into the trajectory equation, you should use trigonometry. You know how high the target is and you know how high the camera is. tan(tilt_angle )= (height_target - height_camera)/ distance

so

distance = (height_target - height_camera) / tan(tilt_angle)

Then look into the trajectory equations for a projectile launched at constant V at an angle. It involves decomposing the angled velocity into a horizontal velocity (which never changes throughout the trajectory) and a vertical velocity (which changes due to gravity).
Reply With Quote