Go to Post Let me tell you, the scariest day ever was the day that I realized since I am a mentor, people actually take my advice and I should be careful of what kind of advice I give. :ahh: - Elgin Clock [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2012, 21:57
badger3.14's Avatar
badger3.14 badger3.14 is offline
Registered User
AKA: Hayden
FRC #2512 (Duluth East Daredevils)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2005
Location: Duluth
Posts: 17
badger3.14 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2012, 07:36
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,752
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 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
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2012, 11:52
badger3.14's Avatar
badger3.14 badger3.14 is offline
Registered User
AKA: Hayden
FRC #2512 (Duluth East Daredevils)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2005
Location: Duluth
Posts: 17
badger3.14 is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2012, 15:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2012, 18:49
badger3.14's Avatar
badger3.14 badger3.14 is offline
Registered User
AKA: Hayden
FRC #2512 (Duluth East Daredevils)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2005
Location: Duluth
Posts: 17
badger3.14 is an unknown quantity at this point
Re: help with labview camera target tracking with turret needed

How much should I change the I by to correct for extremely small error?
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2012, 00:40
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: help with labview camera target tracking with turret needed

Quote:
Originally Posted by badger3.14 View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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