View Single Post
  #3   Spotlight this post!  
Unread 12-02-2012, 10:00
hsekhon27 hsekhon27 is offline
Registered User
FRC #0280 (TNT)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Taylor, MI
Posts: 23
hsekhon27 is an unknown quantity at this point
Re: Help with image processing

Quote:
Originally Posted by Greg McKaskle View Post

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
Thanks, but lets say I didn't want the servo to move and the robot had to turn to point at the target. How does the robot know whether to use a servo or the drive motors? Do I program the servo or motors in vision processing vi?