View Single Post
  #2   Spotlight this post!  
Unread 12-02-2012, 09:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Help with image processing

The default code did this in 2009, and in LV the example still ships. It is called Two Servo Camera Control or something like that.

Think about the center of the camera image as the origin. If the target is not in the center, it is some distance away, and that error term can be scaled and added or subtracted to the servo value to "center" it. The servo already has mechanism to maintain its position, so you only need to give it a set point. Play around with a 1D version of this and I think you'll find it easy to do. Then add the second dimension.

Greg McKaskle