Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Camera angle - interesting question (http://www.chiefdelphi.com/forums/showthread.php?t=43557)

TEAM1949 08-02-2006 16:35

Camera angle - interesting question
 
This question had been asked but hadn't been answered.

How I can retrieve the camera tilt angle without using the parameter of the blob size?

I am gonn'a find the distance from the goal with the sin of the angle.

Can anyone please answer this question specifically ?

Thanks.

TEAM1949 08-02-2006 16:52

Re: Camera angle - interesting question
 
from the terminal.c:

Code:

                // pan angle = ((current pan PWM) - (pan center PWM)) * degrees/pan PWM step
                                printf(" Pan Angle (degrees) = %d\r\n", (((int)PAN_SERVO - 124) * 65)/124);

                                // tilt angle = ((current tilt PWM) - (tilt center PWM)) * degrees/tilt PWM step
                                printf("Tilt Angle (degrees) = %d\r\n", (((int)TILT_SERVO - 144) * 25)/50);

Can anyone explain?

TEAM1949 08-02-2006 17:06

Re: Camera angle - interesting question
 
I didnt understand only this part :

* degrees/tilt PWM step

DanDon 08-02-2006 22:20

Re: Camera angle - interesting question
 
Quote:

Originally Posted by TEAM1949
from the terminal.c:

Code:

                // pan angle = ((current pan PWM) - (pan center PWM)) * degrees/pan PWM step
                                printf(" Pan Angle (degrees) = %d\r\n", (((int)PAN_SERVO - 124) * 65)/124);

                                // tilt angle = ((current tilt PWM) - (tilt center PWM)) * degrees/tilt PWM step
                                printf("Tilt Angle (degrees) = %d\r\n", (((int)TILT_SERVO - 144) * 25)/50);

Can anyone explain?

Hi, ma kore?
basically degrees/PWM step is the number of degrees per rotation of the servo from its midpoint to either the max or min value of the servo. If you need more help, then PM me with your ICQ number and I'll be happy to help.


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

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