View Single Post
  #6   Spotlight this post!  
Unread 27-01-2006, 09:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How do I get distance between Camera and the target?

Instead of doing the math, it might be simpler just to implement a lookup table. Put the robot 50 feet from the goal and measure the camera tilt angle. Move it a foot closer at a time and repeat. Put the answers in the program.

If you have an adjustable shooter, you can put the required barrel tilt/wheel speed/catapult stop bar location in the table instead of the distance.