|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
camera panning the oppsite way
hello, our camera is not panning correctly, i can track its target vertically, but not horzontally, the pan is some how reversed for our camera, we are using a tweaked code from kelvin's site... anyone can help?
|
|
#2
|
||||
|
||||
|
Re: camera panning the oppsite way
Look in tracking.h
// If your camera suddenly moves away from the target once // it finds it, you'll need to change the sign on one or // both of these values. #define PAN_ROTATION_SIGN_DEFAULT +1 #define TILT_ROTATION_SIGN_DEFAULT +1 Change the sign of the pan one. This is if you have the bells and whistles version. You can also when the cam is running press "t" in the terminal window, and change the sign by following the instructions. You just type the letter next to the option in the terminal window to select it. |
|
#3
|
|||
|
|||
|
Re: camera panning the oppsite way
// If your camera suddenly moves away from the target once
// it finds it, you'll need to change the sign on one or // both of these values. #define PAN_ROTATION_SIGN_DEFAULT 1 // -1 #define TILT_ROTATION_SIGN_DEFAULT -1 // +1 We got it to work with this, but try changing the values one at a time, if tilt works, change pan, ect. It took us about 30 mins to get it to finnally track it. |
|
#4
|
|||
|
|||
|
Re: camera panning the oppsite way
The instructions for mounting the camera on the bracket caused it to be mounted upside down (We found this out when we took a snapshot in LabView). We changed it, and suddenly it would lose the target all the time, we had to invert both values for it to work.
Change +1 to -1 and so forth. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMU Camera kills robot controller if not found. | Chris_Elston | Programming | 21 | 27-03-2006 14:30 |
| How To Use the Google Camera | generalbrando | Kit & Additional Hardware | 2 | 07-02-2006 16:00 |
| Camera Is Spazzing Out! | BrittanyV | Programming | 15 | 04-02-2006 13:39 |
| Scripting Setup and the Camera + Serial Port Drivers | CJO | Programming | 22 | 11-01-2006 17:42 |
| CMUCam2 Camera Code - Are important parts commented out? | Mr. Lim | Programming | 4 | 14-01-2005 12:11 |