Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   help with labview camera target tracking with turret needed (http://www.chiefdelphi.com/forums/showthread.php?t=103335)

badger3.14 19-02-2012 21:57

help with labview camera target tracking with turret needed
 
We are using a webcam to track the rectangles around the hoops, and our program can pick up the rectangles but we cannot figure out how to lock on to the rectangles and have the program automatically stay aimed at the rectangle. We are using a PID but are having a hard time trying to figure it out.

I know other teams are doing this with their camera so if you know how, team 2512 will greatly appreciate your help.

Greg McKaskle 20-02-2012 07:36

Re: help with labview camera target tracking with turret needed
 
Moving the whole robot to aim at the target is pretty difficult since there is a lot of friction to overcome, and lots of momentum once it moves. A turret is/should be easier.

If you are calculating the amount to turn the turret, close the loop using an encoder or potentiometer. A PID may be a nice way to do it, but depending on the gearing and mass, you may be able to start with just P.

What area is causing the problem.

Greg McKaskle

badger3.14 20-02-2012 11:52

Re: help with labview camera target tracking with turret needed
 
Right now we have a PID with just P and it tracks the backboard based on the camera's x value. With P at .45 it gets pretty close, but it sends a speed too small for the motor to run off of.

Alan Anderson 20-02-2012 15:26

Re: help with labview camera target tracking with turret needed
 
After the P term makes the motor drive too small when the process variable gets very close to the set point, the I term is designed to account for the remaining steady-state error.

badger3.14 20-02-2012 18:49

Re: help with labview camera target tracking with turret needed
 
How much should I change the I by to correct for extremely small error?

Alan Anderson 21-02-2012 00:40

Re: help with labview camera target tracking with turret needed
 
Quote:

Originally Posted by badger3.14 (Post 1131156)
How much should I change the I by to correct for extremely small error?

That depends entirely on the detailed response of your robot hardware.

You can do it by trial and error; many teams get an adequately tuned PID system that way. Or you can look up the Zeigler-Nichols method and try using it.


All times are GMT -5. The time now is 17:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi