View Single Post
  #2   Spotlight this post!  
Unread 20-02-2010, 08:19
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Built in distance calculations?

I don't believe there is. The way I did it last year was to use the angle of the camera (either fixed or based of the servo or some sensor to measure that angle), the use trig to calculate the distance to the target.

Like this:

Target
|
----------- Robot camera
Find the hypotenuse
__________________
Twitter Profile

Last edited by Luke Pike : 20-02-2010 at 08:22. Reason: ASCII art failed
Reply With Quote