Go to Post We're all such geeks...not that's that a bad thing. - IMDWalrus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2010, 21:32
Cody Ryu Cody Ryu is offline
Registered User
FRC #3070
 
Join Date: Jan 2010
Location: Shoreline, WA
Posts: 1
Cody Ryu is an unknown quantity at this point
Servo help

Hello there.
For our robot's autonomous code, we are attempting to create a target tracking system. Our camera is mounted on two servos, one horizontal, and one vertical. We want to have the camera constantly center the target. How would I go about doing this?
  #2   Spotlight this post!  
Unread 25-01-2010, 21:58
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,513
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Servo help

You should feed the number of pixels from the center of the camera in the X direction into a PID loop with the setpoing being the centermost pixel. Do the same for y. The output of these loops should be fed into the set servo positions for the x and y respectively. Then adjust the gain downward until the jittering stops.

To learn more about PID loops, download the white paper on PID's from chief delphi's media section.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Servo Wiring Help Schnabel Motors 2 09-05-2009 02:57
Servo Help GunfighterJ Programming 1 09-01-2009 17:12
Servo Help Newzealand38 Programming 10 13-01-2008 23:14
Servo Help Chase Programming 1 06-02-2006 17:53
Servo Help Dominator_Legen Motors 3 11-03-2005 19:50


All times are GMT -5. The time now is 10:06.

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