View Single Post
  #2   Spotlight this post!  
Unread 12-01-2010, 19:30
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
Re: Camera programing

Quote:
Originally Posted by 2549wootwoot View Post
Does anybody know how to write a program where our camera would locate the target and tell us the distance to the target.
There are multiple ways you could do this mathematically. But I'm not very good with the code when it comes to the camera. What exactly do you need to know the distance to the target for? You can approximate pretty easily just by looking at which section your robot is in. My suggestion: set your camera below the target and have it look parallel (paralell?) to the ground then use the angle of elevation to the center of the target to find the distance. Ask your math teacher for help with this method, it uses some trigonometry.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
Reply With Quote