View Full Version : 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
Are you using LabView, or testing straight from the RC?
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
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
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
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
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
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
We had to add a jumper and change the direction in the code in order for our camera to track properly.
oh aight thank ya'll :)
~sheyna
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.