Thread: Blob Size
View Single Post
  #7   Spotlight this post!  
Unread 29-01-2006, 20:32
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: Blob Size

Heres what I would suggest. If you have to, you can still use the fixed mount to determine distance. I believe that there is a way to "shift" where the camera's center is (Maybe its shifting the centroid of the blob). In other words, you can have the camera pointing slightly offset of the target, yet still have it return center values.

So, have a routine that slaves the turret to the camera, until it finds the target. Upon finding the target, use the values to determine distance. Then, move the camera center values accordingly in order to correctly angle your shooter, if necessary. After that, unless it loses the target, you can subtract the current offset of the camera to determine current distance, and accordingly re-adjust the camera center to place your shooter "on zero".

I'm sure there is a more elegant solution, but perhaps this can be a place to start.



EDIT----------------------------------------

Post number 600!
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein