View Single Post
  #6   Spotlight this post!  
Unread 29-01-2016, 12:27
iSpotix iSpotix is offline
Registered User
FRC #4049
 
Join Date: Jan 2016
Location: Pittsburgh
Posts: 27
iSpotix is an unknown quantity at this point
Re: Controlling Servos for Vision Targeting

Using GRIP to detect the targets and publish the centerX, I created a simple test program to basically say, if the target is too far to the right, move the camera to the right, and if the camera is too far to the left, move the camera to the left.

You just need to create a threshold say like 140-160 pixels for a 320x240 image to call the center.

Last edited by iSpotix : 29-01-2016 at 12:30.
Reply With Quote