View Single Post
  #4   Spotlight this post!  
Unread 18-02-2007, 16:52
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: How to make the camera search the light instead of only follow when targeted?

well... considering that you are a rookie team and have 5 weeks (max) until your competition, you should either go for a dead-reckoning system, or work your tails off to get that code to work.

just the fact that there are two lights this year makes it all the more complex... if you want to know, though, the average width of a light is the square root of the amount of pixels returned. if you know the width and the position of the light you want to track, you can easily make the camera center on that target, and given the angle of your servo, you can tell your robot to correct for that angle (with a gyro perhaps). once this is done, drive away and place the keeper.

^overly simplistic.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY