View Single Post
  #3   Spotlight this post!  
Unread 28-01-2007, 22:37
ebowla's Avatar
ebowla ebowla is offline
The Overmind
FRC #2016
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Ewing High School
Posts: 15
ebowla is on a distinguished road
Re: programming help needed

From what I know it only sees the center of (mass, light, whatever) right? Like it will end up somewhere between the two lights. I think someone told me that somewhere in the code, dont take me for certain I havent touched on this problem yet in our code, the camera is takeing the highest, lowest, furthest right, and furthest left points of light. It uses them to find the center. Well I think that perhaps if you wanted a robot to lock onto one specifically, left or right, top or bottom, you could use those points to get it at least closer to the target.

It wont be perfect, but if it works it will probably put the center target at the (right)(left)(top)(bottom) of the target, whatever one you chose. Best I can think of right now. Just look through the camera code to see if you cant find the part that picks out those points and decides on the center. It might take a bit of work, but its not impossible.
__________________
Progamming Master
Disclaimer: May not be actually as good as claimed, not reliable for advice, and shirks away any real work.