Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   camera panning the oppsite way (http://www.chiefdelphi.com/forums/showthread.php?t=43288)

TheHolyLancer 04-02-2006 11:13

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?

Denz 04-02-2006 11:30

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.

Zyik 04-02-2006 13:35

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.

X-Istence 04-02-2006 13:53

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.


All times are GMT -5. The time now is 01:36.

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