View Single Post
  #8   Spotlight this post!  
Unread 16-02-2009, 01:44
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
Re: How far have you gotten on coding the camera tracking?

Quote:
Originally Posted by mikeqfl View Post
We have our camera tracking ok. It commands a motor to turn a turret to keep the image in the center of its field of view. The problem we are having is the camera/turret is constantly oscillating back and forth trying to find the center. Any ideas of how to put in a PID loop into Labveiw? I am not up on the programming, just trying to help our programmer out.
It sounds like it would be easiest for you to just have a dead zone in the center of the image - if the target is within a certain bounding box in the center of the image don't try to adjust it any further. Rather than try to center it at the center pixel, aim for a box around the center. It oscillates because the image changes slightly frame-to-frame.