Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CMUCam pan and tilt (http://www.chiefdelphi.com/forums/showthread.php?t=41861)

sheyna 14-01-2006 16:47

CMUCam pan and tilt
 
Ok i changed all of the settings so that the camera can find the object but when it tries to track it and move it in the center it goes off of the page. the tilt works perfectly but the pan goes left instead of right and right instead of left. i been working all day and i need some major help because i am going to go insane :ahh:.

~sheyna

Tom Bottiglieri 14-01-2006 17:00

Re: CMUCam pan and tilt
 
Are you using LabView, or testing straight from the RC?

iBheat 14-01-2006 17:14

Re: CMUCam pan and tilt
 
There is a jumper on the camera board that allows you to reverse the servo direction!

Go to: http://ifirobotics.com/camera.shtml and download the Camera Board Markings.zip file and it is in the CMU Cam Assembly.pdf on the right side!

Brad Voracek 14-01-2006 20:43

Re: CMUCam pan and tilt
 
Quote:

Originally Posted by iBheat
There is a jumper on the camera board that allows you to reverse the servo direction!

Go to: http://ifirobotics.com/camera.shtml and download the Camera Board Markings.zip file and it is in the CMU Cam Assembly.pdf on the right side!

Which jumper do I remove? My team has been having the same problem and on the pdf there are two jumpers... The Internal Power to Servo one and the Oscillator Connect.

I am guessing we remove the latter, but would not this reverse both servo directions, failing to correct anything? Thanks =/

devicenull 14-01-2006 21:06

Re: CMUCam pan and tilt
 
Quote:

Originally Posted by Brad Voracek
Which jumper do I remove? My team has been having the same problem and on the pdf there are two jumpers... The Internal Power to Servo one and the Oscillator Connect.

I am guessing we remove the latter, but would not this reverse both servo directions, failing to correct anything? Thanks =/

Don't remove either. You have to add a jumper. If you look at the doc's, there a "Pan Reverse" and "Tilt Reverse".. you need to put a jumper on whichever you need (You can pull a jumper off any old computer, or old speed controller)

Also, this will only work if you use the CMUcams servo outputs (I think)

Brad Voracek 14-01-2006 21:43

Re: CMUCam pan and tilt
 
Quote:

Originally Posted by devicenull
Don't remove either. You have to add a jumper. If you look at the doc's, there a "Pan Reverse" and "Tilt Reverse".. you need to put a jumper on whichever you need (You can pull a jumper off any old computer, or old speed controller)

Also, this will only work if you use the CMUcams servo outputs (I think)


Ah yeah thanks, I see it now. Someone else also just pointed this out to me @.@ I can't believe I didn't see that...

Bharat Nain 14-01-2006 22:17

Re: CMUCam pan and tilt
 
You can also change the direction in the code where

#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT 1

in tracking .h

iBheat 14-01-2006 23:07

Re: CMUCam pan and tilt
 
I also agree with devicenull in saying that jumping the jumper will only work if you have the servos controlling the pan and tilt connected to the camera board. But if you are connecting it to the RC and using the code written by Kevin you will have to edit the code (in tracking.h) that Bharat Nain posted in the post before this!

coastertux 14-01-2006 23:11

Re: CMUCam pan and tilt
 
We had to add a jumper and change the direction in the code in order for our camera to track properly.

sheyna 14-01-2006 23:20

Re: CMUCam pan and tilt
 
oh aight thank ya'll :)

~sheyna


All times are GMT -5. The time now is 04:31.

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