|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |